Table of Contents

Class OrderContext

Namespace
Dynamicweb.Ecommerce.Orders
Assembly
Dynamicweb.Ecommerce.dll
Represents a order context
public class OrderContext
Inheritance
OrderContext
Inherited Members

Constructors

OrderContext()

Constructor for OrderContext class.
public OrderContext()

OrderContext(IDataReader)

Constructor for OrderContext class.
[Obsolete("Use Services.OrderContexts instead.")]
public OrderContext(IDataReader reader)

Parameters

reader IDataReader

Fields

CacheKey

The order context cache key.
[Obsolete("Not used")]
public const string CacheKey = "Ecommerce:ECOM:ORDERCONTEXTS"

Field Value

string

Properties

Id

Gets or sets the id.
public string Id { get; set; }

Property Value

string
The id.

Name

Gets or sets the name.
public string Name { get; set; }

Property Value

string
The name.

OrderContextRequestName

Returns the name of the request value that CartV2 should look to set correct Order Context.
[Obsolete("Not used")]
public static string OrderContextRequestName { get; }

Property Value

string

PersistentOrderContextRequestName

Returns the name of the request value that CartV2 should look to set persistent Order Context.
[Obsolete("Not used")]
public static string PersistentOrderContextRequestName { get; }

Property Value

string

Shops

Gets or sets the shops.
public List<string> Shops { get; set; }

Property Value

List<string>
The shops.

Methods

Delete()

Deletes the object with specified ID.
[Obsolete("Use Services.OrderContexts.Delete instead.")]
public void Delete()

Fill(IDataReader)

Fills this instance with data from the specified data reader.
[Obsolete("Use Services.OrderContexts instead.")]
public void Fill(IDataReader reader)

Parameters

reader IDataReader
The data reader.

GetOrderContextById(string)

Gets order context by id (uses cache if it possible).
[Obsolete("Use Services.OrderContexts.GetOrderContextById instead.")]
public static OrderContext GetOrderContextById(string contextId)

Parameters

contextId string
The id of order context.

Returns

OrderContext

GetOrderContexts()

Gets all order contexts.
[Obsolete("Use Services.OrderContexts.GetOrderContexts instead.")]
public static OrderContextCollection GetOrderContexts()

Returns

OrderContextCollection

Save()

Saves the order context into DB.
[Obsolete("Use Services.OrderContexts.Save instead.")]
public void Save()
To top