Class ViewSettingsLanguageBase<T>
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
Base configuration for views that require a language to be contructed.
public class ViewSettingsLanguageBase<T> : ViewSettingsBase<T> where T : FillableViewModelBase, new()
Type Parameters
T
Fillable ViewModel
- Inheritance
-
ViewSettingsLanguageBase<T>
- Derived
- Inherited Members
Constructors
ViewSettingsLanguageBase()
protected ViewSettingsLanguageBase()
ViewSettingsLanguageBase(string)
Creates a configuration for constructing product viewmodels.
public ViewSettingsLanguageBase(string languageId)
Parameters
languageId
stringId of language
Properties
LanguageId
Id of the language used for creation of the product viewmodel. Default: Language marked as default.
public string LanguageId { get; set; }
Property Value
- string
languageId
Methods
EnsureContext<TS>(ViewSettingsBase<TS>)
public override void EnsureContext<TS>(ViewSettingsBase<TS> settings) where TS : FillableViewModelBase, new()
Parameters
settings
ViewSettingsBase<TS>
Type Parameters
TS