You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Galandre99 EF Core typically builds the model once and then caches it. This is required for performance. This means that your model building code is only being called for the first DbContext instance, and then never again.
Instead you should make establishmentId a field on your DbContext. This allows the same query filter to be used with different DbContext instances, taking the establishmentId from that instance.
Hi, I need to use method 'HasQueryFilter' based on user permission. I actually done this
but session is always empty. Any idea how to get session after login?
Thanks all.
EF Core version: 3.0
The text was updated successfully, but these errors were encountered: