标签: linq attributes
我试图在LINQ SELECT查询中填充属性集合。
appointments.AddRange(db.Events.ToList().Select(appointment => new Appointment { ID = appointment.ID, Subject = appointment.Subject, Attributes["Location"] = appointment.Location }));
支持吗?
感谢。