/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGliahistbalcriteria(ref DataRow row, Gliahistbalcriteria entity) { row.SetField("glno", entity.glno); row.SetField("glyear", entity.glyear); row.SetField("fncd", entity.fncd); row.SetField("jobcd", entity.jobcd); row.SetField("stdt", entity.stdt); row.SetField("userfield", entity.userfield); }
public static Gliahistbalcriteria BuildGliahistbalcriteriaFromRow(DataRow row) { Gliahistbalcriteria entity = new Gliahistbalcriteria(); entity.glno = row.IsNull("glno") ? string.Empty : row.Field <string>("glno"); entity.glyear = row.IsNull("glyear") ? 0 : row.Field <int>("glyear"); entity.fncd = row.IsNull("fncd") ? string.Empty : row.Field <string>("fncd"); entity.jobcd = row.IsNull("jobcd") ? string.Empty : row.Field <string>("jobcd"); entity.stdt = row.Field <DateTime?>("stdt"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }