示例#1
0
        public Sys_sysSort Clone()
        {
            Sys_sysSort sys_sysSort = new Sys_sysSort();

            sys_sysSort.entityCus = entityCus.Clone();
            return(sys_sysSort);
        }
示例#2
0
        public static IList <Sys_sysSort> TransDataTableToEntityList(DataTable dt)
        {
            IList <Sys_sysSort> list        = new List <Sys_sysSort>();
            Sys_sysSort         sys_sysSort = null;

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