public GoblinDbContext CreateDbContext(string[] args)
        {
            var optionsBuilder = new DbContextOptionsBuilder <GoblinDbContext>();

            GoblinDbContextFactoryHelper.Build(null, optionsBuilder);

            return(new GoblinDbContext(optionsBuilder.Options));
        }
Пример #2
0
        public static IServiceCollection AddGoblinDbContext(this IServiceCollection services)
        {
            GoblinDbContextFactoryHelper.Build(services, null);

            return(services);
        }