Exemplo n.º 1
0
        public Sys_shopShip Clone()
        {
            Sys_shopShip sys_shopShip = new Sys_shopShip();

            sys_shopShip.entityCus = entityCus.Clone();
            return(sys_shopShip);
        }
Exemplo n.º 2
0
        public static IList <Sys_shopShip> TransDataTableToEntityList(DataTable dt)
        {
            IList <Sys_shopShip> list         = new List <Sys_shopShip>();
            Sys_shopShip         sys_shopShip = null;

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                sys_shopShip = new Sys_shopShip();
                foreach (DataColumn column in dt.Columns)
                {
                    sys_shopShip.EntityCustom.SetValue(column.ColumnName, dt.Rows[i][column]);
                }
                list.Add(sys_shopShip);
            }
            return(list);
        }