I have a strange problem when using Entity Framework code first.
When I return an object with dbContext.Users.Where... I don’t get the User defined in my model, but User_{GUID}.
Is there anyone who knows this phenomenon and can help?
Regards,
Ajit
If your
dbContext.Usersif of a typeDbSet<User>then you would get aUser-castable type instance if you queryUserscollection.User_{GUID}looks like a dynamic proxy object to aUserinstance in yourDbContext. Treat it as if it was aUserinstance.