Table of Contents

Class Number

Namespace
Dynamicweb.Ecommerce.Common
Assembly
Dynamicweb.Ecommerce.dll

Number class.

[Serializable]
public class Number
Inheritance
Number
Inherited Members

Constructors

Number()

Initializes a new instance of the Number class.

public Number()

Number(IDataReader)

Initializes a new instance of the Number class.

public Number(IDataReader dataReader)

Parameters

dataReader IDataReader

The data record.

Properties

Add

Gets or sets the add.

public int Add { get; set; }

Property Value

int

The add.

ColumnName

Gets or set the column name

public string ColumnName { get; set; }

Property Value

string

Name of the related column

Counter

Gets or sets the counter.

public int Counter { get; set; }

Property Value

int

The counter.

Description

Gets or sets the description.

public string Description { get; set; }

Property Value

string

The description.

Editable

Gets or sets a value indicating whether this Number is editable.

public bool Editable { get; set; }

Property Value

bool

true if editable; otherwise, false.

ID

Gets or sets the ID.

public string ID { get; set; }

Property Value

string

The ID.

PostFix

Gets or sets the post fix.

public string PostFix { get; set; }

Property Value

string

The post fix.

Prefix

Gets or sets the prefix.

public string Prefix { get; set; }

Property Value

string

The prefix.

TableName

Gets or set the table name

public string TableName { get; set; }

Property Value

string

Name of the related table

Type

Gets or sets the type.

public string Type { get; set; }

Property Value

string

The type.

Methods

Delete()

Deletes this instance.

public void Delete()

GetAllNumbers()

Gets all numbers.

public static IEnumerable<Number> GetAllNumbers()

Returns

IEnumerable<Number>

IEnumerable(Of Number).

GetNumberById(string)

Gets the number by identifier. Number must be editable.

public static Number GetNumberById(string id)

Parameters

id string

The identifier.

Returns

Number

Number.

GetNumbersByEditability(bool)

Gets the numbers by their editability.

public static IEnumerable<Number> GetNumbersByEditability(bool editable)

Parameters

editable bool

if set to true [editable].

Returns

IEnumerable<Number>

A list of editable/not editable numbers

LoadFromType(string)

Loads from type.

public void LoadFromType(string type)

Parameters

type string

The type.

NewNumber()

Gets new number and saves the result.

public string NewNumber()

Returns

string

A new number with prefix and postfix

Save()

Saves this instance.

public void Save()
To top