Exemplo n.º 1
0
        public static IList <Sp_shopSort> TransDataTableToEntityList(DataTable dt)
        {
            IList <Sp_shopSort> list        = new List <Sp_shopSort>();
            Sp_shopSort         sp_shopSort = null;

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