/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromReptwizardfinishcriteria(ref DataRow row, Reptwizardfinishcriteria entity) { row.SetField("currproc", entity.currproc); row.SetField("operation", entity.operation); row.SetField("origreportnm", entity.origreportnm); row.SetField("latestreportnm", entity.latestreportnm); row.SetField("onetimefl", entity.onetimefl); row.SetField("batchnm", entity.batchnm); row.SetField("priority", entity.priority); row.SetField("rpttitle", entity.rpttitle); row.SetField("startdt", entity.startdt); row.SetField("starttm", entity.starttm); row.SetField("starttm2", entity.starttm2); row.SetField("starttype", entity.starttype); row.SetField("removefl", entity.removefl); row.SetField("timezoneclient", entity.timezoneclient); }
public static Reptwizardfinishcriteria BuildReptwizardfinishcriteriaFromRow(DataRow row) { Reptwizardfinishcriteria entity = new Reptwizardfinishcriteria(); entity.currproc = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc"); entity.operation = row.IsNull("operation") ? string.Empty : row.Field <string>("operation"); entity.origreportnm = row.IsNull("origreportnm") ? string.Empty : row.Field <string>("origreportnm"); entity.latestreportnm = row.IsNull("latestreportnm") ? string.Empty : row.Field <string>("latestreportnm"); entity.onetimefl = row.Field <bool>("onetimefl"); entity.batchnm = row.IsNull("batchnm") ? string.Empty : row.Field <string>("batchnm"); entity.priority = row.IsNull("priority") ? 0 : row.Field <int>("priority"); entity.rpttitle = row.IsNull("rpttitle") ? string.Empty : row.Field <string>("rpttitle"); entity.startdt = row.Field <DateTime?>("startdt"); entity.starttm = row.IsNull("starttm") ? 0 : row.Field <int>("starttm"); entity.starttm2 = row.IsNull("starttm2") ? 0 : row.Field <int>("starttm2"); entity.starttype = row.IsNull("starttype") ? string.Empty : row.Field <string>("starttype"); entity.removefl = row.Field <bool>("removefl"); entity.timezoneclient = row.IsNull("timezoneclient") ? 0 : row.Field <int>("timezoneclient"); return(entity); }