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
{{ message }}
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.
The first request tenantId is set to 1, the constructor CrudContext and OnModelCreating is called and the filter is applied. The second request tenantId is set to 2, the constructor CrudContext is called and filter value is set to 2, but OnModelCreating is not called, I think it was cached. The filter stay the same tenantId == 1. All next requests diferents value filters are set on constructor CrudContext but filter is never changed, stay the same way wich was already set on the first request.
How should configuration be set to get this working?
The text was updated successfully, but these errors were encountered:
rstreit
changed the title
OnModelCreating is cached and filters params is set just once at firs request
OnModelCreating is cached and filters params is set just once at first request
May 19, 2016
rstreit
changed the title
OnModelCreating is cached and filters params is set just once at first request
OnModelCreating is cached and filters params is set just once at the first request
May 19, 2016
The documentation is not clear, so I have configured Filters this way:
The first request tenantId is set to 1, the constructor CrudContext and OnModelCreating is called and the filter is applied. The second request tenantId is set to 2, the constructor CrudContext is called and filter value is set to 2, but OnModelCreating is not called, I think it was cached. The filter stay the same tenantId == 1. All next requests diferents value filters are set on constructor CrudContext but filter is never changed, stay the same way wich was already set on the first request.
How should configuration be set to get this working?
The text was updated successfully, but these errors were encountered: