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

            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.receiptdt  = row.Field <DateTime?>("receiptdt");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }