Exemplo n.º 1
0
        public Sys_sizeGroup Clone()
        {
            Sys_sizeGroup sys_sizeGroup = new Sys_sizeGroup();

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

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