public static IList <Sp_sellProperty> TransDataTableToEntityList(DataTable dt) { IList <Sp_sellProperty> list = new List <Sp_sellProperty>(); Sp_sellProperty sp_sellProperty = null; for (int i = 0; i < dt.Rows.Count; i++) { sp_sellProperty = new Sp_sellProperty(); foreach (DataColumn dataColumn in dt.Columns) { sp_sellProperty.EntityCustom.SetValue(dataColumn.ColumnName, dt.Rows[i][dataColumn]); } list.Add(sp_sellProperty); } return(list); }
public static string ConnectValuesWithChar(IList <Sp_sellProperty> list, string fieldName, WrapCharType wrapCharType, bool trim) { return(Sp_sellProperty.ConnectValuesWithChar(list, fieldName, ',', wrapCharType, trim)); }