Пример #1
0
        public static TG_wuliu ToEntity(VIEW_TG_wuliu model)
        {
            TG_wuliu item = new TG_wuliu();

            item.Id           = model.Id;
            item.wuliuName    = model.wuliuName;
            item.wuliuNum     = model.wuliuNum;
            item.wuliuState   = model.wuliuState;
            item.wuliuMan     = model.wuliuMan;
            item.wuliuTel     = model.wuliuTel;
            item.wuliuAddress = model.wuliuAddress;
            item.AddTime      = model.AddTime;
            item.remark1      = model.remark1;
            item.remark2      = model.remark2;
            item.remark3      = model.remark3;
            item.flat1        = model.flat1;
            item.flat2        = model.flat2;
            item.remark4      = model.remark4;
            item.remark5      = model.remark5;
            item.remark6      = model.remark6;
            item.flat7        = model.flat7;
            item.flat8        = model.flat8;
            item.RegTim1      = model.RegTim1;
            item.RegTim2      = model.RegTim2;
            return(item);
        }
Пример #2
0
        public static IEnumerable <VIEW_TG_wuliu> ToListViewModel(IEnumerable <TG_wuliu> list)
        {
            var listModel = new List <VIEW_TG_wuliu>();

            foreach (TG_wuliu item in list)
            {
                listModel.Add(VIEW_TG_wuliu.ToViewModel(item));
            }
            return(listModel);
        }