示例#1
0
        public static IList <Sp_property> TransDataTableToEntityList(DataTable dt)
        {
            IList <Sp_property> list        = new List <Sp_property>();
            Sp_property         sp_property = null;

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