Table of Contents

Class StockGroup

Namespace
Dynamicweb.Ecommerce.Stocks
Assembly
Dynamicweb.Ecommerce.dll
Represents the stock group.
[Serializable]
public class StockGroup
Inheritance
StockGroup
Inherited Members

Constructors

StockGroup()

Initializes a new instance of the class.
public StockGroup()

StockGroup(IDataReader)

Initializes a new instance of the class.
[Obsolete("This method is no longer used.")]
public StockGroup(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

StockGroup(string)

Initializes a new instance of the class.
[Obsolete("Use Services.StockService.GetStockGroup(id) instead.")]
public StockGroup(string id)

Parameters

id string
The id.

Properties

Id

Gets the id.
public string Id { get; }

Property Value

string

Exceptions

ReadOnlyException
Setter throws exception when the stock group in readonly mode.

Name

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

Property Value

string

Exceptions

ReadOnlyException
Setter throws exception when the stock group in readonly mode.

StockStatuses

Gets or sets the stock statuses.
[Obsolete("Use StockStatus.GetStockStatuses(id, true) instead.")]
public StockStatusCollection StockStatuses { get; set; }

Property Value

StockStatusCollection

Exceptions

ReadOnlyException
Setter throws exception when the stock group in readonly mode.

Methods

Clone()

Clones the stock group.
[Obsolete]
public StockGroup Clone()

Returns

StockGroup
New instance of the StockGroup.

Copy()

Copies the stock group.
[Obsolete("Use Clone() instead.")]
public StockGroup Copy()

Returns

StockGroup
New instance of the StockGroup.

Delete()

Deletes the stock group.
[Obsolete("Use Services.StockService.DeleteStockGroup(id) instead.")]
public void Delete()

Delete(string)

Deletes the stock group.
[Obsolete("Use Services.StockService.DeleteStockGroup(id) instead.")]
public void Delete(string id)

Parameters

id string
The id.

Fill(IDataReader)

Fills the class properties.
[Obsolete("This method is no longer used.")]
public void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

GetStockGroups()

Gets the stock groups.
[Obsolete("Use Services.StockService.GetStockGroups() instead.")]
public static StockGroupCollection GetStockGroups()

Returns

StockGroupCollection
The collection of the StockGroup.

Lock()

Locks the stock group (Readonly mode).
[Obsolete("This method is no longer used.")]
public void Lock()

Save(string)

Saves the stock group.
[Obsolete("Use Services.StockService.SaveStockGroup(StockGroup) instead.")]
public void Save(string id)

Parameters

id string
The id.
To top