Webiant Logo Webiant Logo
  1. No results found.

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

IStoreMappingSupportedModelFactory.cs

using Nop.Core;
using Nop.Core.Domain.Stores;
using Nop.Web.Framework.Models;

namespace Nop.Web.Framework.Factories;

/// 
/// Represents the store mapping supported model factory
/// 
public partial interface IStoreMappingSupportedModelFactory
{
    /// 
    /// Prepare selected and all available stores for the passed model
    /// 
    /// Store mapping supported model type
    /// Model
    /// A task that represents the asynchronous operation
    Task PrepareModelStoresAsync(TModel model) where TModel : IStoreMappingSupportedModel;

    /// 
    /// Prepare selected and all available stores for the passed model by store mappings
    /// 
    /// Store mapping supported model type
    /// Store mapping supported entity type
    /// Model
    /// Entity
    /// Whether to ignore existing store mappings
    /// A task that represents the asynchronous operation
    Task PrepareModelStoresAsync(TModel model, TEntity entity, bool ignoreStoreMappings)
        where TModel : IStoreMappingSupportedModel where TEntity : BaseEntity, IStoreMappingSupported;
}