vii
Contents
Additional resources ..................................................................................................................................................... 239
Design the infrastructure persistence layer .............................................................................................................. 239
The Repository pattern ................................................................................................................................................ 240
Additional resources ..................................................................................................................................................... 244
Implement the infrastructure persistence layer with Entity Framework Core ............................................ 244
Introduction to Entity Framework Core ................................................................................................................. 245
Infrastructure in Entity Framework Core from a DDD perspective ............................................................. 245
Implement custom repositories with Entity Framework Core ...................................................................... 247
EF DbContext and IUnitOfWork instance lifetime in your IoC container ................................................. 249
The repository instance lifetime in your IoC container ................................................................................... 250
Table mapping ................................................................................................................................................................ 251
Implement the Query Specification pattern ........................................................................................................ 254
Use NoSQL databases as a persistence infrastructure ......................................................................................... 256
Introduction to Azure Cosmos DB and the native Cosmos DB API ........................................................... 257
Implement .NET code targeting MongoDB and Azure Cosmos DB .......................................................... 259
Design the microservice application layer and Web API .................................................................................... 267
Use SOLID principles and Dependency Injection .............................................................................................. 267
Implement the microservice application layer using the Web API ................................................................. 268
Use Dependency Injection to inject infrastructure objects into your application layer ..................... 268
Implement the Command and Command Handler patterns ....................................................................... 272
The Command process pipeline: how to trigger a command handler ..................................................... 279
Implement the command process pipeline with a mediator pattern (MediatR) .................................. 282
Apply cross-cutting concerns when processing commands with the Behaviors in MediatR .......... 288
Dostları ilə paylaş: