Table of Contents

Class FieldType

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
Represents product field type object
[Serializable]
public class FieldType
Inheritance
FieldType
Inherited Members

Constructors

FieldType()

Empty constructor
public FieldType()

FieldType(IDataReader)

Create FieldType object using income DataReader with loaded properties
[Obsolete("Use Dynamicweb.Ecommerce.Services.FieldType methods instead.")]
public FieldType(IDataReader dataReader)

Parameters

dataReader IDataReader
DataReader with selected object

FieldType(int)

Create FieldType object by provided type ID
[Obsolete("Use Dynamicweb.Ecommerce.Services.FieldType.GetById instead.")]
public FieldType(int typeId)

Parameters

typeId int
Type ID of object to create

FieldType(string)

Create FieldType object by provided type name
[Obsolete("Use Dynamicweb.Ecommerce.Services.FieldType.GetByName instead.")]
public FieldType(string typeName)

Parameters

typeName string
Type name of object to create

Properties

DynamicwebAlias

System name for field type.
public string DynamicwebAlias { get; set; }

Property Value

string

Id

ID of FieldType object
public int Id { get; set; }

Property Value

int

IsCustom

public bool IsCustom { get; }

Property Value

bool

Name

Name of field type.
public string Name { get; set; }

Property Value

string

Provider

The name of the FieldTypeProvider added to the field type
public string Provider { get; set; }

Property Value

string

ProviderConfiguration

The configuration of provider
public string ProviderConfiguration { get; set; }

Property Value

string

ProviderInstance

The instance of the FieldTypeProvider added to the field type
public ProductFieldTypeProvider ProviderInstance { get; }

Property Value

ProductFieldTypeProvider

Sort

Sort order for field types in various GUI lists
public int Sort { get; set; }

Property Value

int

SqlPresentation

Field type DDL presentation in MS SQL.
public string SqlPresentation { get; set; }

Property Value

string

Methods

ClearCache()

Clear cached FieldTypes
[Obsolete("Use 'Ecommerce.Services.FieldType.ClearFieldTypeCache' instead")]
public static void ClearCache()

Fill(IDataReader)

Fill current object with properties loaded to DataReader
[Obsolete("Use Dynamicweb.Ecommerce.Services.FieldType.Extract instead.")]
public void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader
DataReader with selected FieldType object

GetFieldTypes()

Load custom field types
[Obsolete("Use 'Ecommerce.Services.FieldType.GetFieldTypes' instead")]
public static IEnumerable<FieldType> GetFieldTypes()

Returns

IEnumerable<FieldType>
Collection of FieldType objects

Remarks

Procedure skips advanced field types

GetFieldTypes(bool)

Load custom field types
[Obsolete("Use 'Ecommerce.Services.FieldType.GetFieldTypes' instead")]
public static IEnumerable<FieldType> GetFieldTypes(bool showAdvanced)

Parameters

showAdvanced bool
Include or not advanced types

Returns

IEnumerable<FieldType>
Collection of FieldType objects

GetFieldTypes(int)

Get field type object by type ID
[Obsolete("Use 'Ecommerce.Services.FieldType.GetFieldTypes' instead")]
public static IEnumerable<FieldType> GetFieldTypes(int typeId)

Parameters

typeId int
Field type ID

Returns

IEnumerable<FieldType>
Collection with selected object or empty collection if provided ID is not found in DB
To top