Skip to content

Releases: kolesnikovav/EFCoreDataChange

Add Dependency Injection

13 Oct 14:42
Compare
Choose a tag to compare

You can use DI like follows.

using EfCoreDataChange;

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddDbContext(
                RuntimeDBContextExtention<MyDBContext>.RuntimeContextType,
                options =>
                options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection"));
        }