Ashish Patel
Jun 15, 2023

--

ApplicationUser and DbContext are tightly coupled, sometimes these kind to tight coupling don’t rightly fit into this type of architecture patterns.

However, in your case, you can add reference in Domain.Entity to establish FK relationships.

This is one of the reason I avoid using Microsoft Identity to implement AuthN/R.

--

--

Ashish Patel
Ashish Patel

Written by Ashish Patel

Cloud Architect • 4x AWS Certified • 6x Azure Certified • 1x Kubernetes Certified • MCP • .NET • Terraform • DevOps • Blogger [https://bit.ly/iamashishpatel]

Responses (1)