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.
Hi,
Given the following example
modelBuilder.Conventions.Add(FilterConvention.Create<ISecuredByTenant,Guid>("SecuredByTenant",(e, SecuredByTenantId) => e.SecuredByTenantId.Equals(SecuredByTenantId)));
class A : ISecuredByTenant {
Guid TenantId {get;set;}
B NavProp {get;set;}
}
class B : ISecuredByTenant {
Guid TenantId {get;set;}
}
var ctx = new DbSampleContext();
//Filter is applied to query1
var query1 = ctx.A.ToList();
//Filter is applied to query1
var query2 = ctx.B.ToList();
//Filter is applied only to A table
var query3 = ctx.A.Include(v=>v.B).ToList();
Is it possible for the filters to be applied to every join that match a convention ?
The text was updated successfully, but these errors were encountered: