private static DomainObject[] FillDomainObject(Type type, DataTable table) { DomainObject[] domainObjects = new DomainObject[table.Rows.Count]; int num1 = 0; foreach (DataRow dr in table.Rows) { domainObjects[num1] = DomainObjectUtility.FillDomainObject(type.Assembly.CreateInstance(type.FullName), dr); num1 = num1 + 1; } return(domainObjects); }
public static DomainObject[] FillDomainObject(Type type, DataSet ds) { if (ds == null) { return(null); } if (ds.Tables[0].Rows.Count < 1) { return(null); } return(DomainObjectUtility.FillDomainObject(type, ds.Tables[0])); }