Class OrderLineField
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about an order line field
[Serializable]
public class OrderLineField
- Inheritance
-
OrderLineField
- Inherited Members
Constructors
OrderLineField(IDataReader)
Initializes a new instance of the OrderLineField class.
[Obsolete("Use Services.OrderLineFields instead.")]
public OrderLineField(IDataReader dataReader)
Parameters
dataReader
IDataReader- The DataReader.
OrderLineField(string, string, int)
Initializes a new instance of the OrderLineField class.
public OrderLineField(string systemName, string name, int length)
Parameters
systemName
string- System name of the field.
name
string- Name of the field.
length
int- Length of the field (number of characters).
Properties
Length
Gets or sets the length.
public int Length { get; set; }
Property Value
- int
- The length.
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
- string
- The name.
Sort
Gets or sets the sort.
public int Sort { get; set; }
Property Value
SystemName
Gets the system name.
public string SystemName { get; }
Property Value
- string
- The system name.
Methods
ClearCache()
Clear cached order line fields
[Obsolete("Use Services.OrderLineFields.ClearCache instead.")]
public static void ClearCache()
Create(string)
Creates the specified OrderLineField object.
[Obsolete("Use Services.OrderLineFields.GetOrderLineFieldBySystemName or create a new instance instead.")]
public static OrderLineField Create(string systemName)
Parameters
systemName
string- Name of the system.
Returns
Delete()
Deletes this instance.
[Obsolete("Use Services.OrderLineFields.Delete instead.")]
public bool Delete()
Returns
Delete(string)
Deletes the specified instance.
[Obsolete("Use Services.OrderLineFields.Delete instead.")]
public static bool Delete(string systemName)
Parameters
systemName
string- Name of the system.
Returns
- bool
- true if success; otherwise, false.
GetOrderLineFields()
Gets the collection of the OrderLineField objects.
[Obsolete("Use Services.OrderLineFields.GetOrderLineFields instead.")]
public static OrderLineFieldCollection GetOrderLineFields()
Returns
GetOrderLineFields(string)
Gets the collection of the OrderLineField objects.
[Obsolete("Use Services.OrderLineFields.GetOrderLineFieldRelationsByGroup instead.")]
public static OrderLineFieldCollection GetOrderLineFields(string groupId)
Parameters
groupId
string- The group ID.
Returns
GetOrderLineFieldsByShop(string)
Gets the collection of the OrderLineField objects for specified shop.
[Obsolete("Use Services.OrderLineFields.GetOrderLineFieldRelationsByShop instead.")]
public static OrderLineFieldCollection GetOrderLineFieldsByShop(string shopID)
Parameters
shopID
string- The shop ID.
Returns
Save()
Saves this instance.
[Obsolete("Use Services.OrderLineFields.Save instead.")]
public bool Save()
Returns
- bool
- true if success; otherwise, false.