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

            _options = options;
            _entityConfigurationContainer = entityConfigurationContainer;
        }
Exemple #2
0
 public ApplicationDbContext(
     DbContextOptions options,
     IEntityConfigurationContainer entityConfigurationContainer) : base(options)
 {
     _entityConfigurationContainer = entityConfigurationContainer;
 }