Ejemplo n.º 1
0
        public static Reptwizardvalsapbo BuildReptwizardvalsapboFromRow(DataRow row)
        {
            Reptwizardvalsapbo entity = new Reptwizardvalsapbo();

            entity.currproc = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            entity.orderno  = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            return(entity);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizardvalsapbo(ref DataRow row, Reptwizardvalsapbo entity)
 {
     row.SetField("currproc", entity.currproc);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
 }