Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
@ foreach (var u in Model)
{

@u.Userid
@u.username
@u.salary

@foreach (var d in Dept)
{

@d.deptid
@d.deptname



}


error is ;;;;;;

VB
Error   1   Error 3002: Problem in mapping fragments starting at line 100:Potential runtime violation of table Users's keys (Users.Userid): Columns (Users.Userid) are mapped to EntitySet Users's properties (Users.Userid) on the conceptual side but they do not form the EntitySet's key properties (Users.Userid, Users.salary).
    c:\users\smart\documents\visual studio 2012\Projects\RepositoryPattern\RepositoryPattern\StudentRepository.edmx 101 15  RepositoryPattern
Posted
Updated 1-Apr-15 4:17am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900