#Ef-Core
2 notas · última:
How to Implement Multitenancy in ASP.NET Core with EF Core
The post explains multitenancy with a discriminator column, then shows how EF Core query filters and SaveChanges can isolate tenant data, set TenantId automatically, and support login and header-based tenant selection.
How to Implement Audit Trail in ASP.NET Core with EF Core
The post shows how to add audit trails in an ASP.NET Core app with EF Core by using a separate AuditTrail entity, current-user lookup, and DbContext change tracking.
