Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOelinelinetiehdr(ref DataRow row, Oelinelinetiehdr entity)
 {
     row.SetField("runmode", entity.runmode);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("ourproc", entity.ourproc);
     row.SetField("whse", entity.whse);
     row.SetField("transtype", entity.transtype);
     row.SetField("maintmode", entity.maintmode);
     row.SetField("orderdisp", entity.orderdisp);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Oelinelinetiehdr BuildOelinelinetiehdrFromRow(DataRow row)
        {
            Oelinelinetiehdr entity = new Oelinelinetiehdr();

            entity.runmode   = row.IsNull("runmode") ? string.Empty : row.Field <string>("runmode");
            entity.orderno   = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf  = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.ourproc   = row.IsNull("ourproc") ? string.Empty : row.Field <string>("ourproc");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.transtype = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.maintmode = row.IsNull("maintmode") ? string.Empty : row.Field <string>("maintmode");
            entity.orderdisp = row.IsNull("orderdisp") ? string.Empty : row.Field <string>("orderdisp");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }