/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOeipaltprodloadcriteria(ref DataRow row, Oeipaltprodloadcriteria entity) { row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("custno", entity.custno); row.SetField("initialload", entity.initialload); row.SetField("optprod", entity.optprod); }
public static Oeipaltprodloadcriteria BuildOeipaltprodloadcriteriaFromRow(DataRow row) { Oeipaltprodloadcriteria entity = new Oeipaltprodloadcriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.custno = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno"); entity.initialload = row.Field <bool>("initialload"); entity.optprod = row.Field <bool>("optprod"); return(entity); }