/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromJournallookupcriteria(ref DataRow row, Journallookupcriteria entity) { row.SetField("oper2", entity.oper2); row.SetField("jrnlno", entity.jrnlno); row.SetField("ourproc", entity.ourproc); row.SetField("opendtstart", entity.opendtstart); row.SetField("opendtend", entity.opendtend); row.SetField("unprintedonlyfl", entity.unprintedonlyfl); row.SetField("openonlyfl", entity.openonlyfl); row.SetField("recordcountlimit", entity.recordcountlimit); }
public static Journallookupcriteria BuildJournallookupcriteriaFromRow(DataRow row) { Journallookupcriteria entity = new Journallookupcriteria(); entity.oper2 = row.IsNull("oper2") ? string.Empty : row.Field <string>("oper2"); entity.jrnlno = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno"); entity.ourproc = row.IsNull("ourproc") ? string.Empty : row.Field <string>("ourproc"); entity.opendtstart = row.Field <DateTime?>("opendtstart"); entity.opendtend = row.Field <DateTime?>("opendtend"); entity.unprintedonlyfl = row.Field <bool>("unprintedonlyfl"); entity.openonlyfl = row.Field <bool>("openonlyfl"); entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit"); return(entity); }