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