← Back
Milan Jovanovic October 30, 2024 36s

Using EF Core Query Filters? WON'T WORK without this trick

Summary

This transcript discusses configuring tenant-based filters with EF Core using query filters. It highlights that assigning the tenant ID in `OnModelCreating` will not work because it's only called once, capturing the first tenant. Instead, the `GetTenantId` method should be used within the query filter itself, as it's called for every EF Core query, ensuring correct tenant isolation.

View original episode ↗