Esempio n. 1
0
        public static IList <Sp_sysSort> TransDataTableToEntityList(DataTable dt)
        {
            IList <Sp_sysSort> list       = new List <Sp_sysSort>();
            Sp_sysSort         sp_sysSort = null;

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                sp_sysSort = new Sp_sysSort();
                foreach (DataColumn dataColumn in dt.Columns)
                {
                    sp_sysSort.EntityCustom.SetValue(dataColumn.ColumnName, dt.Rows[i][dataColumn]);
                }
                list.Add(sp_sysSort);
            }
            return(list);
        }
Esempio n. 2
0
 public static string ConnectValuesWithChar(IList <Sp_sysSort> list, string fieldName, WrapCharType wrapCharType, bool trim)
 {
     return(Sp_sysSort.ConnectValuesWithChar(list, fieldName, ',', wrapCharType, trim));
 }