Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

402 B
Raw Blame
namespace Grand.Mapping.Internal;

internal sealed class MapperConfigurationExpressionImpl : IMapperConfigurationExpression
{
    private readonly List<IMappingConfiguration> _configurations = new();

    public void AddProfile(Profile profile)
        => _configurations.AddRange(profile.GetConfigurations());

    internal IEnumerable<IMappingConfiguration> GetConfigurations() => _configurations;
}