Table of Contents

Class FillableViewModelBase

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll

Base class for all fillable view models in the product catalog. A fillable view model supports selective property loading — only properties that are explicitly requested via the corresponding settings object are populated, giving near-zero performance cost for properties that are not needed.

public abstract class FillableViewModelBase : ViewModelBase
Inheritance
FillableViewModelBase
Derived
Inherited Members

Remarks

In Razor templates you consume concrete subclasses (e.g. ProductViewModel, DiscountViewModel) rather than this base class directly. The fillable pattern means that a property returning null may simply not have been requested — check the settings object used to build the view model if you need the data.

Methods

ToJson()

Serializes this view model to a compact JSON string.

public override string ToJson()

Returns

string

A compact JSON representation of this view model.

To top