dataContext = new realtydbEntities()) var user = from aspnet_Rolesrol in dataContext.aspnet_Roles.Include("aspnet_Users")
from aspnet_Users usr in rol.aspnet_Usersaspnet</
假设我有一个变量'userid',我想从aspnet_Membership和aspnet_AccountProfile表中进行选择。它们都有userid列,我只想能写一条像SELECT * FROM aspnet_AccountProfile,aspnet_Membership WHERE UserId=@UserId这样的语句,它会得到两个表中具有匹配用户