/// <summary> /// Build a class from a database row /// </summary> public static Oeeh BuildOeehFromRow(DataRow row) { var entity = BuildOeehBaseFromRow <Oeeh>(row); if (entity != null) { var childRowP_ttblarsc = row.GetChildRows("P_ttblarsc").FirstOrDefault(); if (childRowP_ttblarsc != null) { entity.arsces = (Arsc)SetKeyFields(entity, Arsc.BuildArscFromRow(childRowP_ttblarsc), "cono,custno", "cono,custno"); } var childRowP_ttblarss = row.GetChildRows("P_ttblarss").FirstOrDefault(); if (childRowP_ttblarss != null) { entity.arsses = (Arss)SetKeyFields(entity, Arss.BuildArssFromRow(childRowP_ttblarss), "cono,custno,shipto", "cono,custno,shipto"); } } return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromArss(ref DataRow row, Arss entity) { UpdateRowFromArssBase(ref row, entity); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, Arss entity) { ArssBase.BuildMinimalRow(ref row, entity); }