Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

BaseNopModel.cs

using System.Xml.Serialization;

namespace Nop.Web.Framework.Models;

/// 
/// Represents base nopCommerce model
/// 
public partial record BaseNopModel
{
    #region Ctor

    /// 
    /// Ctor
    /// 
    public BaseNopModel()
    {
        CustomProperties = new Dictionary();
        PostInitialize();
    }

    #endregion

    #region Methods

    /// 
    /// Perform additional actions for the model initialization
    /// 
    /// Developers can override this method in custom partial classes in order to add some custom initialization code to constructors
    protected virtual void PostInitialize()
    {
    }

    #endregion

    #region Properties

    /// 
    /// Gets or sets property to store any custom values for models 
    /// 
    [XmlIgnore]
    public Dictionary CustomProperties { get; set; }

    #endregion
}