Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoebtdeletebatch(ref DataRow row, Poebtdeletebatch entity)
 {
     row.SetField("shipmentid", entity.shipmentid);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Poebtdeletebatch BuildPoebtdeletebatchFromRow(DataRow row)
        {
            Poebtdeletebatch entity = new Poebtdeletebatch();

            entity.shipmentid = row.IsNull("shipmentid") ? string.Empty : row.Field <string>("shipmentid");
            entity.pono       = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf      = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }