Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoebtgetdatacriteria(ref DataRow row, Poebtgetdatacriteria entity)
 {
     row.SetField("shipmentid", entity.shipmentid);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("vendno", entity.vendno);
     row.SetField("whse", entity.whse);
     row.SetField("ediPackageId", entity.ediPackageId);
     row.SetField("readyASN", entity.readyASN);
     row.SetField("recordCountLimit", entity.recordCountLimit);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Poebtgetdatacriteria BuildPoebtgetdatacriteriaFromRow(DataRow row)
        {
            Poebtgetdatacriteria entity = new Poebtgetdatacriteria();

            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.vendno           = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.ediPackageId     = row.IsNull("ediPackageId") ? string.Empty : row.Field <string>("ediPackageId");
            entity.readyASN         = row.IsNull("readyASN") ? string.Empty : row.Field <string>("readyASN");
            entity.recordCountLimit = row.IsNull("recordCountLimit") ? 0 : row.Field <int>("recordCountLimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }