Table of Contents

Class FieldOptionTranslation

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
The class FieldOptionTranslation represents product FieldOption translation.
public class FieldOptionTranslation : Translation, ICloneable
Inheritance
FieldOptionTranslation
Implements
Inherited Members

Constructors

FieldOptionTranslation()

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

FieldOptionTranslation(string)

public FieldOptionTranslation(string languageId)

Parameters

languageId string

Properties

ID

Store and retrieves the current object ID - usually the primary key of the table storing the data.
public int ID { get; set; }

Property Value

int
Object ID.

Name

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

Property Value

string

OptionId

Gets or sets the translation option id.
public string OptionId { get; set; }

Property Value

string

Methods

ClearCache()

Clears product field option translations cache.
[Obsolete("Use 'Services.FieldOptions.ClearCache' instead")]
public static void ClearCache()

Delete()

[Obsolete("Use 'Dynamicweb.Ecommerce.Services.FieldOptions.DeleteTranslation' instead")]
public void Delete()

Delete(int)

[Obsolete("Use 'Dynamicweb.Ecommerce.Services.FieldOptions.DeleteTranslation' instead")]
public void Delete(int id)

Parameters

id int

DeleteExcessOptions()

Deletes non existing options transaltions.
[Obsolete("Use 'Dynamicweb.Ecommerce.Services.FieldOptions.DeleteExcessOptionTranslations' instead")]
public static void DeleteExcessOptions()

DeleteFieldOptions(string)

Deletes product field options by given field id.
[Obsolete("Use 'Dynamicweb.Ecommerce.Services.FieldOptions.DeleteFieldOptionTranslations' instead")]
public static void DeleteFieldOptions(string fieldId)

Parameters

fieldId string
The field id.

DeleteFieldOptions(string, string)

Deletes product field options by given field and language ids.
[Obsolete("Use 'Dynamicweb.Ecommerce.Services.FieldOptions.DeleteFieldOptionTranslations' instead")]
public static void DeleteFieldOptions(string fieldId, string languageId)

Parameters

fieldId string
The field id.
languageId string
The language id.

Fill(IDataReader)

Fills this translation instance with data from the data reader.
public void Fill(IDataReader reader)

Parameters

reader IDataReader
The reader

GetTranslatedOption(string, string)

Gets the field option translation.
[Obsolete("Use 'Dynamicweb.Ecommerce.Services.FieldOptions.GetTranslation' instead")]
public static FieldOptionTranslation GetTranslatedOption(string optionId, string languageId)

Parameters

optionId string
The option id.
languageId string
The language id.

Returns

FieldOptionTranslation

GetTranslatedOptionName(FieldOption, string)

Gets the field option translation name.
[Obsolete("Use 'FieldOption.GetName' instead")]
public static string GetTranslatedOptionName(FieldOption option, string languageId)

Parameters

option FieldOption
languageId string
The language id.

Returns

string
The translation name.

Save()

[Obsolete("Use 'Dynamicweb.Ecommerce.Services.FieldOptions.SaveTranslation' instead")]
public void Save()
To top