Class Number
- Namespace
- Dynamicweb.Ecommerce.Common
- Assembly
- Dynamicweb.Ecommerce.dll
Number class.
- Inheritance
-
Number
- Inherited Members
Constructors
Number()
Initializes a new instance of the Number class.
Number(IDataReader)
Initializes a new instance of the Number class.
Parameters
dataReader
IDataReader The data record.
Properties
Add
Gets or sets the add.
Property Value
- int
The add.
ColumnName
Gets or set the column name
Property Value
- string
Name of the related column
Counter
Gets or sets the counter.
Property Value
- int
The counter.
Description
Gets or sets the description.
Property Value
- string
The description.
Editable
Gets or sets a value indicating whether this Number is editable.
Property Value
- bool
true
if editable; otherwise,false
.
ID
Gets or sets the ID.
Property Value
- string
The ID.
PostFix
Gets or sets the post fix.
Property Value
- string
The post fix.
Prefix
Gets or sets the prefix.
Property Value
- string
The prefix.
TableName
Gets or set the table name
Property Value
- string
Name of the related table
Type
Gets or sets the type.
Property Value
- string
The type.
Methods
Delete()
Deletes this instance.
GetAllNumbers()
Gets all numbers.
Returns
- IEnumerable<Number>
IEnumerable(Of Number).
GetNumberById(string)
Gets the number by identifier. Number must be editable.
Parameters
id
stringThe identifier.
Returns
- Number
Number.
GetNumbersByEditability(bool)
Gets the numbers by their editability.
Parameters
editable
boolif set to
true
[editable].
Returns
- IEnumerable<Number>
A list of editable/not editable numbers
LoadFromType(string)
Loads from type.
Parameters
type
stringThe type.
NewNumber()
Gets new number and saves the result.
Returns
- string
A new number with prefix and postfix
Save()
Saves this instance.