You must make the Auditor available....var auditConfiguration = AuditConfiguration.Default;
auditConfiguration.IncludeRelationships = true;
auditConfiguration.LoadRelationships = true;
auditConfiguration.DefaultAuditable = true;
...simply include it where your app is initially launched. For instance, Global.asax.cs...edited...As far as I'm aware, E...
The method call may be stored in a variable outside the query expression tree and used within as a workaround by:...var accountFilter = this.AccountSecurity(p_UserKey);
var qry = from cs in this.DbContext.CompanySet
.Where(c => c.Accounts.AsQueryable().Any(accountFilter))