Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
        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);
        }