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.
where EngineContext.Current.CurrentUserId return Guid UserId from ClaimIdentity of the logged in user (I see in debug mode that parameter war return correctly). No way: for every user I still receive all the events from the database, no way to get it filtered by TenantId parameter setted.
I'm forgetting something? I can get it work!
Thanks in advance!
Daniel
The text was updated successfully, but these errors were encountered:
Hi, I'm try to use filter by this way:
During OnModelCreating:
`base.OnModelCreating(modelBuilder);
where MultiTenancyConfigurations.Configure do this job:
modelBuilder.Conventions.Add( FilterConvention.Create<CalendarEvent, Guid>("CalendarEvent_Filter", (e, tenantId) => e.TenantId == tenantId));
and, on DbContext initialization, I have:
this.EnableFilter("CalendarEvent_Filter").SetParameter("tenantId", EngineContext.Current.CurrentUserId);
where EngineContext.Current.CurrentUserId return Guid UserId from ClaimIdentity of the logged in user (I see in debug mode that parameter war return correctly). No way: for every user I still receive all the events from the database, no way to get it filtered by TenantId parameter setted.
I'm forgetting something? I can get it work!
Thanks in advance!
Daniel
The text was updated successfully, but these errors were encountered: