I have a filter
this.Filter<BaseModel>(q => q.Where(x => x.CompanyId == companyId);
Is there a way to check whatever "x" is implementing my custom interface "IGlobalDatabaseObject" ?
this.Filter<BaseModel>(q => q.Where(x => x.CompanyId == companyId || x is IGlobalDatabaseObject ); ?
So, the db queries will return the data where "x.CompanyId== companyId" or if that data implements Global Interface
I am using Ef plus library (github.com/zzzprojects/EntityFramework-Plus )
BaseModel
implementsIGlobalDatabaseObject
or is there some inheritance going on here? – DavidG Jul 6 '17 at 11:03