Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromActivepalletscriteria(ref DataRow row, Activepalletscriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("pallet_id", entity.palletId);
     row.SetField("bin_num", entity.binNum);
     row.SetField("activepalletuserfield", entity.activepalletuserfield);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Activepalletscriteria BuildActivepalletscriteriaFromRow(DataRow row)
        {
            Activepalletscriteria entity = new Activepalletscriteria();

            entity.coNum    = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum    = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.palletId = row.IsNull("pallet_id") ? string.Empty : row.Field <string>("pallet_id");
            entity.binNum   = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num");
            entity.activepalletuserfield = row.IsNull("activepalletuserfield") ? string.Empty : row.Field <string>("activepalletuserfield");
            entity.userfield             = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }