Table of Contents

Class ProductGroupField

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
Represents information about product group.
[Serializable]
public class ProductGroupField
Inheritance
ProductGroupField
Inherited Members

Constructors

ProductGroupField()

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

ProductGroupField(IDataReader)

Initializes a new instance of the ProductGroupField class using income DataReader.
public ProductGroupField(IDataReader dataReader)

Parameters

dataReader IDataReader
DataReader.

ProductGroupField(string)

Initializes a new instance of the ProductGroupField class using income ProductGroupFieldID.
public ProductGroupField(string fieldId)

Parameters

fieldId string
DB field name is ProductGroupFieldID.

Properties

Description

The description of this field.
public string Description { get; set; }

Property Value

string

Id

Gets or sets the ID.
public string Id { get; set; }

Property Value

string
The ID.

ListPresentationType

Gets or sets the presentation type for this field (only applies for product group fields of type "list").
public FieldListPresentationType ListPresentationType { get; set; }

Property Value

FieldListPresentationType

Remarks

Setting this property only makes sense for product group fields of type "list".

Locked

Gets or sets a value indicating whether this ProductGroupField is locked.
public bool Locked { get; set; }

Property Value

bool
true if locked; otherwise, false.

Name

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

Property Value

string
The name.

Required

Gets or sets required value.
public bool Required { get; set; }

Property Value

bool
The types.

Sort

Gets or sets the sort.
public int Sort { get; set; }

Property Value

int
The sort.

SystemName

Gets or sets system name.
public string SystemName { get; set; }

Property Value

string
System name.

TemplateName

Gets or sets the name of the template.
public string TemplateName { get; set; }

Property Value

string
The template name.

TypeId

Gets or sets the type of ID.
public int TypeId { get; set; }

Property Value

int
The type of ID.

TypeName

Gets or sets the name of the type.
public string TypeName { get; set; }

Property Value

string
The type name.

Types

Gets or sets the types.
public IEnumerable<FieldType> Types { get; set; }

Property Value

IEnumerable<FieldType>
The types.

Methods

Delete()

Deletes this instance from DB.
public void Delete()

Delete(string)

Deletes the instance from DB by ProductGroupFieldID.
public void Delete(string fieldId)

Parameters

fieldId string
DB field name is ProductGroupFieldID.

Fill(IDataReader)

Fills properties from data reader.
public void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader
DataReader.

FindProductGroupFieldsBySystemName(string)

Finds the ProductGroupFields.
public static ProductGroupFieldCollection FindProductGroupFieldsBySystemName(string systemName)

Parameters

systemName string

Returns

ProductGroupFieldCollection

FindProductGroupFieldsBySystemName(string, string)

Finds the ProductGroupFields in DB.
public static ProductGroupFieldCollection FindProductGroupFieldsBySystemName(string systemName, string fieldId)

Parameters

systemName string
fieldId string
DB field name is ProductGroupFieldID.

Returns

ProductGroupFieldCollection

GetProductGroupFields()

Gets the ProductGroupFields.
public static ProductGroupFieldCollection GetProductGroupFields()

Returns

ProductGroupFieldCollection

Lock()

Locks this instance.
public void Lock()

Save(string)

Saves the properties into DB.
public void Save(string fieldId)

Parameters

fieldId string
DB field name is ProductGroupFieldID.
To top