Defines a service for generating SKUs for products, used when SKU field is empty or hidden.
// Source: https://github.com/OrchardCMS/OrchardCore.Commerce | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
#nullable enable
using OrchardCore.ContentManagement;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace OrchardCore.Commerce.Abstractions.Abstractions;
/// <summary>
/// A service that can provide an alternative to manually filling out the product part's SKU field.
/// </summary>
public interface ISkuGenerator
{
/// <summary>
/// Gets the sorting order when selecting SKU generator. If multiple generators are registered, the one with the
/// highest priority is used.
/// </summary>
public int Priority => 0;
/// <summary>
/// Gets a value indicating whether
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key