var query = from x in List
select new Bank
{
ID = x.ID,
ParentID = x.ParentID,
Name = x.Name,
LayerCode = x.LayerCode,
CreateDateTime = x.CreateDateTime,
CreatePerson = x.CreatePerson,
ChangeDateTime = x.ChangeDateTime,
ChangePerson = x.ChangePerson,
IsEnabled = x.IsEnabled,
IsDelete = x.IsDelete,
Remark = x.LayerCode.Trim() + " " + x.Name.Trim(),
AccountingSystem = x.AccountingSystem
};
转载于:https://www.cnblogs.com/xiaozhuaweiliang/archive/2012/10/25/List.html