/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGlinquiryrevalcriteria(ref DataRow row, Glinquiryrevalcriteria entity) { row.SetField("jrnlno", entity.jrnlno); row.SetField("setno", entity.setno); row.SetField("sourcecd", entity.sourcecd); row.SetField("divno", entity.divno); row.SetField("recordcountlimit", entity.recordcountlimit); row.SetField("userfield", entity.userfield); }
public static Glinquiryrevalcriteria BuildGlinquiryrevalcriteriaFromRow(DataRow row) { Glinquiryrevalcriteria entity = new Glinquiryrevalcriteria(); entity.jrnlno = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno"); entity.setno = row.IsNull("setno") ? 0 : row.Field <int>("setno"); entity.sourcecd = row.IsNull("sourcecd") ? string.Empty : row.Field <string>("sourcecd"); entity.divno = row.IsNull("divno") ? 0 : row.Field <int>("divno"); entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }