示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPhysinvdisclocresults(ref DataRow row, Physinvdisclocresults entity)
 {
     row.SetField("loc", entity.loc);
     row.SetField("loc_status", entity.locStatus);
     row.SetField("loc_type", entity.locType);
     row.SetField("prim_pick", entity.primPick);
     row.SetField("zone", entity.zone);
     row.SetField("zone_type", entity.zoneType);
     row.SetField("aisle", entity.aisle);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Physinvdisclocresults BuildPhysinvdisclocresultsFromRow(DataRow row)
        {
            Physinvdisclocresults entity = new Physinvdisclocresults();

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