<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Entity framework :: Juice&#39;s documentation</title>
    <link>https://docs.pavellis.com/core/entityframework/index.html</link>
    <description>DbContextBase We resolved Audit, UnitOfWork and dynamic schema problems with an abstract DbContext that implemented these interfaces:&#xA;IAuditableDbContext IUnitOfWork IScehmaDbContext We’ll explain these interfaces below, but remember to call ConfigureServices( serviceProvider ) for your legacy DbContext in two ways:&#xA;Inside constructor // call inside constructor public TimerDbContext(IServiceProvider serviceProvider, DbContextOptions&lt;TimerDbContext&gt; options) : base(options) { ConfigureServices(serviceProvider); }&#xD;Or inside context factory if you are using pooled DbContext public class TimerDbContextScopedFactory : IDbContextFactory&lt;TimerDbContext&gt; { private readonly IDbContextFactory&lt;TimerDbContext&gt; _pooledFactory; private readonly IServiceProvider _serviceProvider; public TimerDbContextScopedFactory( IDbContextFactory&lt;TimerDbContext&gt; pooledFactory, IServiceProvider serviceProvider) { _pooledFactory = pooledFactory; _serviceProvider = serviceProvider; } public TimerDbContext CreateDbContext() { var context = _pooledFactory.CreateDbContext(); context.ConfigureServices(_serviceProvider); return context; } }&#xD;Then register PooledDbContext</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://docs.pavellis.com/core/entityframework/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>