从LIst查询数据生成新的List

      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/p/List.html