我真的找不到关于如何转换IQueryable
为的答案EntityCollection
?
var userGroups = this.ObjectContext.UserGroups;
foreach (var userGroup in userGroups )
{
var ussers = this.ObjectContext.Users.Where(f => f.UserGroupID == item.ID && f.IsActive == true);
userGroup.Users = users; // Here I' am getting an issue.
}