This question is locked. New answers and comments are not allowed.
I created a telerik web application and built my models from an existing database but I cant selelct from it as I get the following error
Both types, 'DMSv1Model.Right','DMSv1Model.Right', participating in a bi-directional association use a server side key generator. This is an invalid setup.
heres my code
User _NewUser = new User();
try
{
using (EntitiesModel dbContext = new EntitiesModel())
{
_NewUser = (from u in dbContext.Users
where u.UsrUserName == userName
select u).FirstOrDefault();
return _NewUser;
}
}
catch (Exception ex)
{
//Rethow like this in order preservce stack trace
throw;
}
Both types, 'DMSv1Model.Right','DMSv1Model.Right', participating in a bi-directional association use a server side key generator. This is an invalid setup.
heres my code
User _NewUser = new User();
try
{
using (EntitiesModel dbContext = new EntitiesModel())
{
_NewUser = (from u in dbContext.Users
where u.UsrUserName == userName
select u).FirstOrDefault();
return _NewUser;
}
}
catch (Exception ex)
{
//Rethow like this in order preservce stack trace
throw;
}