Exemplo n.º 1
0
        public static TG_tuihuo ToEntity(VIEW_TG_tuihuo model)
        {
            TG_tuihuo item = new TG_tuihuo();

            item.Id             = model.Id;
            item.orderId        = model.orderId;
            item.orderNum       = model.orderNum;
            item.transaction_id = model.transaction_id;
            item.userName       = model.userName;
            item.UserTel        = model.UserTel;
            item.orderTime      = model.orderTime;
            item.linkTel        = model.linkTel;
            item.tkType         = model.tkType;
            item.tkInfo         = model.tkInfo;
            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);
        }
Exemplo n.º 2
0
        public static IEnumerable <VIEW_TG_tuihuo> ToListViewModel(IEnumerable <TG_tuihuo> list)
        {
            var listModel = new List <VIEW_TG_tuihuo>();

            foreach (TG_tuihuo item in list)
            {
                listModel.Add(VIEW_TG_tuihuo.ToViewModel(item));
            }
            return(listModel);
        }