protected static SRPGlobalSettingsHelper[] MapRecords(DataTable dt) { var recordList = new System.Collections.ArrayList(); foreach (DataRow r in dt.Rows) { var s = new SRPGlobalSettingsHelper(); s.UID = (int)r["UID"]; s.ModuleID = (int)r["ModuleID"]; s.ListValues = r["ListValues"].ToString(); s.Description = r["Name"].ToString(); s.Name = r["Name"].ToString(); s.PropertyName = r["PropertyName"].ToString(); s.Type = r["Type"].ToString(); s.Editor = r["Editor"].ToString(); s.Value = r["Value"].ToString(); recordList.Add(s); } return((SRPGlobalSettingsHelper[])(recordList.ToArray(typeof(SRPGlobalSettingsHelper)))); }
protected static SRPGlobalSettingsHelper[] MapRecords(DataTable dt) { var recordList = new System.Collections.ArrayList(); foreach (DataRow r in dt.Rows) { var s = new SRPGlobalSettingsHelper(); s.UID = (int)r["UID"]; s.ModuleID = (int)r["ModuleID"]; s.ListValues =r["ListValues"].ToString(); s.Description = r["Name"].ToString(); s.Name = r["Name"].ToString(); s.PropertyName = r["PropertyName"].ToString(); s.Type = r["Type"].ToString(); s.Editor = r["Editor"].ToString(); s.Value = r["Value"].ToString(); recordList.Add(s); } return (SRPGlobalSettingsHelper[])(recordList.ToArray(typeof(SRPGlobalSettingsHelper))); }