Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeirapproveintlorders(ref DataRow row, Oeirapproveintlorders entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("approvintlty", entity.approvintlty);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Oeirapproveintlorders BuildOeirapproveintlordersFromRow(DataRow row)
        {
            Oeirapproveintlorders entity = new Oeirapproveintlorders();

            entity.orderno      = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf     = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.approvintlty = row.IsNull("approvintlty") ? string.Empty : row.Field <string>("approvintlty");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }