Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGeneratelabelprtinvcrit(ref DataRow row, Generatelabelprtinvcrit entity)
 {
     row.SetField("abs_num", entity.absNum);
     row.SetField("bin_num", entity.binNum);
     row.SetField("lot", entity.lot);
     row.SetField("pallet_id", entity.palletId);
     row.SetField("rowID", entity.rowID.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Generatelabelprtinvcrit BuildGeneratelabelprtinvcritFromRow(DataRow row)
        {
            Generatelabelprtinvcrit entity = new Generatelabelprtinvcrit();

            entity.absNum    = row.IsNull("abs_num") ? string.Empty : row.Field <string>("abs_num");
            entity.binNum    = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num");
            entity.lot       = row.IsNull("lot") ? string.Empty : row.Field <string>("lot");
            entity.palletId  = row.IsNull("pallet_id") ? string.Empty : row.Field <string>("pallet_id");
            entity.rowID     = row.Field <byte[]>("rowID").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }