Posted 20 Feb 2012 Link to this post
public
IList<
short
> VisibleBooks(
userID)
{
return
this
.Context.my_roles.Where(r => r.UsersIDs().Contains(userID)).SelectMany<my_role,
>(r => r.VisibleBookIDs()).Distinct<
>().ToList<
>();
}
var tmp =
.Context.my_roles.Where(r => r.users.Select(u => u.UserId).Contains(userID)).ToList();
tmp.SelectMany<my_role,