LINQ query to entity framework isn't doing the Include() correctly -


I am querying this in an entity model that contains the .net subscription tables

  Var q = u in reference.aspnet_Users.Include ("aspnet_Membership") in context from ud. User details where u.UserId == ud.UserId & amp; Amp; Ud.CompanyID == Company selection u; Want to get  user  in  company   id  in  id  in  company   >  

/ code> out of user to company and other related table table UserDetails is a custom table.

My problem is that the property Aspnet_embership is the last object in which the user exists, though. Any idea why?

Does not work with being in it (stupid, I know): < P>

) Q.Include ("aspnet_Membership");

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -