var users = from u in db.Users.Include("UserLogins")
join ul in db.UserLogins on u.UserId equals ul.UserId
join ua in db.UserActions ON ul.UserLoginId = ua.UserLoginId
where u.IsActive = true
group new { ul, ua }
by new {u.UserId} into proj
select new
{
UserId = (Int32)y.Key.UserId,
LoginDates = ????????
};
是否可以在投影中返回日期列表的集合?
我猜不是,用逗号分隔的日期列表怎么样?
就像是:
"DateTime1, Datetime2, DateTime3"