// Read Repository. public interface IUserReadRepository : IReadOnlyRepository<AppUser, Guid> { } // Assign DbContext. public class UserReadRepository : EfCoreRepository<ReadDbContext, AppUser, Guid>, IUserReadRepository { public UserReadRepository(IDbContextProvider<ReadDbContext> dbContextProvider) : base(dbContextProvider) { } } // Write Repository. public interface IUserWriteRepository : IRepository<AppUser, Guid> { } // Assign DbContext. public class UserWriteRepository : EfCoreRepository<WriteDbContext, AppUser, Guid>, IUserReadRepository { public UserWriteRepository(IDbContextProvider<WriteDbContext> dbContextProvider) : base(dbContextProvider) { } }