Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOetenderingupdateresults(ref DataRow row, Oetenderingupdateresults entity)
 {
     row.SetField("totdr", entity.totdr);
     row.SetField("totcr", entity.totcr);
     row.SetField("tothash", entity.tothash);
     row.SetField("nopostings", entity.nopostings);
     row.SetField("setno", entity.setno);
 }
Пример #2
0
        public static Oetenderingupdateresults BuildOetenderingupdateresultsFromRow(DataRow row)
        {
            Oetenderingupdateresults entity = new Oetenderingupdateresults();

            entity.totdr      = row.IsNull("totdr") ? decimal.Zero : row.Field <decimal>("totdr");
            entity.totcr      = row.IsNull("totcr") ? decimal.Zero : row.Field <decimal>("totcr");
            entity.tothash    = row.IsNull("tothash") ? decimal.Zero : row.Field <decimal>("tothash");
            entity.nopostings = row.IsNull("nopostings") ? 0 : row.Field <int>("nopostings");
            entity.setno      = row.IsNull("setno") ? 0 : row.Field <int>("setno");
            return(entity);
        }