Beispiel #1
0
        public static IList <Sp_pictures> TransDataTableToEntityList(DataTable dt)
        {
            IList <Sp_pictures> list        = new List <Sp_pictures>();
            Sp_pictures         sp_pictures = null;

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