Class WarehouseManager
Implements operations for the warehouse manager.
Inheritance
System.Object
WarehouseManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Catalog.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
[Obsolete("Use IWarehouseRepository. Will remain at least until November 2016.")]
public static class WarehouseManager
Methods
GetWarehouseByWarehouseId(Int32)
Gets the warehouses.
Declaration
public static WarehouseDto GetWarehouseByWarehouseId(int warehouseId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | warehouseId |
Returns
Type | Description |
---|---|
WarehouseDto |
GetWarehouseCodeById(Int32)
Gets the warehouse code by id.
Declaration
[Obsolete("The primary warehouse flag is not dependable, and this method may return the first match without any explicit ordering. Avoid use. Will remain at least until November 2016.")]
public static string GetWarehouseCodeById(int warehouseId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | warehouseId |
Returns
Type | Description |
---|---|
System.String | Code. If warehouse is not found, returns code for primary warehouse. If there is no primary warehouse, returns empty string. |
GetWarehouseDto()
Gets the warehouses.
Declaration
public static WarehouseDto GetWarehouseDto()
Returns
Type | Description |
---|---|
WarehouseDto |
GetWarehouseIdByCode(String)
Gets the warehouse id by code.
Declaration
[Obsolete("The warehouse code requires an application ID to be unique, and this method will return the first match without any explicit ordering. Avoid use. Will remain at least until November 2016.")]
public static int GetWarehouseIdByCode(string code)
Parameters
Type | Name | Description |
---|---|---|
System.String | code |
Returns
Type | Description |
---|---|
System.Int32 | WarehouseId. If warehouse is not found, returns -1. |
GetWarehouseIdByName(String)
Gets the warehouse id by name.
Declaration
[Obsolete("The warehouse name is not unique, and this method will return the first match without any explicit ordering. Avoid use. Will remain at least until November 2016.")]
public static int GetWarehouseIdByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.Int32 | WarehouseId. If warehouse is not found, reutrns -1. |
SaveWarehouse(WarehouseDto)
Saves changes in WarehouseDto.
Declaration
public static void SaveWarehouse(WarehouseDto dataset)
Parameters
Type | Name | Description |
---|---|---|
WarehouseDto | dataset | The dto. |