Our great sponsors
-
AdaptiveClient
Library and pattern for creating a scalable, loosely coupled service layer. Build interdependent services that are granular and testable. Inject a single client that allows the application to access the entire service layer. Provision services across multiple providers and transports with almost zero application infrastructure.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I wrote a small library to assist with this very problem. AdaptiveClient allows you to write granular services and inject DbContext. The same instance of DbContext is injected into all services so one service can call another and calls can be wrapped in transactions.
Demo application is here.
Related posts
- Any suggestions on a good place to learn n-tier?
- Managing DbContext in EFCore6 (the right way)
- EF Core multiple providers with multiple databases
- Pass a different parameter every time a Transient service is requested from the .NET Core DI container
- Entity Framework Core transaction across multiple services