LINQ SELECT是否支持System.Web.UI.AttributeCollection

时间:2015-07-27 14:13:20

标签: linq attributes

我试图在LINQ SELECT查询中填充属性集合。

appointments.AddRange(db.Events.ToList().Select(appointment => new Appointment
{
    ID = appointment.ID,
    Subject = appointment.Subject,
    Attributes["Location"] = appointment.Location
}));

支持吗?

感谢。

0 个答案:

没有答案