Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPhysuncountedlocresults(ref DataRow row, Physuncountedlocresults entity)
 {
     row.SetField("loc", entity.loc);
     row.SetField("zone", entity.zone);
     row.SetField("aisle", entity.aisle);
     row.SetField("loc_type", entity.locType);
     row.SetField("prim_pick", entity.primPick);
     row.SetField("loc_status", entity.locStatus);
     row.SetField("binmstRowID", entity.binmstRowID.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Physuncountedlocresults BuildPhysuncountedlocresultsFromRow(DataRow row)
        {
            Physuncountedlocresults entity = new Physuncountedlocresults();

            entity.loc         = row.IsNull("loc") ? string.Empty : row.Field <string>("loc");
            entity.zone        = row.IsNull("zone") ? string.Empty : row.Field <string>("zone");
            entity.aisle       = row.IsNull("aisle") ? 0 : row.Field <int>("aisle");
            entity.locType     = row.IsNull("loc_type") ? string.Empty : row.Field <string>("loc_type");
            entity.primPick    = row.Field <bool>("prim_pick");
            entity.locStatus   = row.Field <bool>("loc_status");
            entity.binmstRowID = row.Field <byte[]>("binmstRowID").ToStringEncoded();
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }