public ApplicationDbContextFactory(
            DbContextOptions options,
            IEntityConfigurationsContainer entityConfigurationsContainer)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }
            if (entityConfigurationsContainer == null)
            {
                throw new ArgumentNullException(nameof(entityConfigurationsContainer));
            }

            _options = options;
            _entityConfigurationsContainer = entityConfigurationsContainer;
        }
Ejemplo n.º 2
0
 public ApplicationDbContext(
     DbContextOptions options,
     IEntityConfigurationsContainer entityConfigurationsContainer) : base(options)
 {
     _entityConfigurationsContainer = entityConfigurationsContainer;
 }