Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

Support for joins #23

Description

@newsoftinc

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions