/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGlinquiryjournalcriteria(ref DataRow row, Glinquiryjournalcriteria entity) { row.SetField("jrnlno", entity.jrnlno); row.SetField("setno", entity.setno); row.SetField("glno", entity.glno); row.SetField("dctype", entity.dctype); row.SetField("glyear", entity.glyear); row.SetField("userfield", entity.userfield); }
public static Glinquiryjournalcriteria BuildGlinquiryjournalcriteriaFromRow(DataRow row) { Glinquiryjournalcriteria entity = new Glinquiryjournalcriteria(); entity.jrnlno = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno"); entity.setno = row.IsNull("setno") ? 0 : row.Field <int>("setno"); entity.glno = row.IsNull("glno") ? string.Empty : row.Field <string>("glno"); entity.dctype = row.IsNull("dctype") ? 0 : row.Field <int>("dctype"); entity.glyear = row.IsNull("glyear") ? 0 : row.Field <int>("glyear"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }