public IQueryable <EntityInterface> GetEntities(System.Linq.Expressions.Expression <Func <EntityInterface, bool> > predicate) { ValidateDataContext(); return(_dataContext.Set <EntityModel>().Where(predicate) .IncludeReferences(typeof(EntityModel), null, QueryableExtensions.GetEntityTypes(_dataContext), true)); }