Class ProductFieldTranslation
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
The class ProductFieldTranslation represents ProductField translation.
[Serializable]
public class ProductFieldTranslation : DbObject
- Inheritance
-
ProductFieldTranslation
- Inherited Members
Constructors
ProductFieldTranslation()
Initializes a new instance of the ProductFieldTranslation class.
public ProductFieldTranslation()
Properties
Description
The translation field description.
public string Description { get; set; }
Property Value
FieldId
The field id.
public string FieldId { get; set; }
Property Value
LanguageId
The language Id.
public string LanguageId { get; set; }
Property Value
Name
The translation name.
public string Name { get; set; }
Property Value
ValidationErrorMessage
Gets or sets the validation error message.
public string ValidationErrorMessage { get; set; }
Property Value
Methods
ClearCache()
Clears the translations cache.
public static void ClearCache()
Delete(int)
Deletes the translation by given id.
public override void Delete(int translationId)
Parameters
translationId
int
Fill(IDataReader)
Fills the translation with data from given reader.
public override void Fill(IDataReader reader)
Parameters
reader
IDataReader
FillRow(DataRow)
Override the FillRow method to map all the properties values to their respective field on the datarow. Used when the object is being saved.
protected override void FillRow(DataRow row)
Parameters
row
DataRowThe datarow to fill with data.
GetAllTranslations()
Gets the all translations
public static ProductFieldTranslationCollection GetAllTranslations()
Returns
- ProductFieldTranslationCollection
The all translations
GetTranslatedField(string, string)
Gets the product field translation
public static ProductFieldTranslation GetTranslatedField(string fieldId, string languageId)
Parameters
Returns
- ProductFieldTranslation
The all translations
GetTranslatedFieldDescription(ProductField, string)
Gets the product field Name translation
public static string GetTranslatedFieldDescription(ProductField field, string languageId)
Parameters
field
ProductFieldlanguageId
string
Returns
- string
The all translations
GetTranslatedFieldErrorMessage(ProductField, string)
Gets the product field Name translation
public static string GetTranslatedFieldErrorMessage(ProductField field, string languageId)
Parameters
field
ProductFieldlanguageId
string
Returns
- string
The all translations
GetTranslatedFieldName(ProductField, string)
Gets the product field Name translation
public static string GetTranslatedFieldName(ProductField field, string languageId)
Parameters
field
ProductFieldlanguageId
string
Returns
- string
The all translations
GetTranslatedFields(string)
Gets the product field translations (all languages)
public static List<ProductFieldTranslation> GetTranslatedFields(string fieldId)
Parameters
fieldId
string
Returns
- List<ProductFieldTranslation>
The all translations
IsTranslationExists(string, string)
Is translation exists
public static bool IsTranslationExists(string fieldId, string languageId)
Parameters
Returns
Save()
Saves the translation.
public override void Save()