@ -5,6 +5,7 @@ using System.Linq.Expressions;
using System.Threading ;
using System.Threading.Tasks ;
using MongoDB.Driver ;
using MongoDB.Driver.Linq ;
using Volo.Abp.Domain.Entities ;
using Volo.Abp.MongoDB ;
using Volo.Abp.MultiTenancy ;
@ -77,6 +78,11 @@ namespace Volo.Abp.Domain.Repositories.MongoDB
return ApplyDataFilters ( Collection . AsQueryable ( ) ) ;
}
protected virtual IMongoQueryable < TEntity > GetMongoQueryable ( )
{
return ApplyDataFilters ( Collection . AsQueryable ( ) ) ;
}
protected virtual FilterDefinition < TEntity > CreateEntityFilter ( TEntity entity )
{
throw new NotImplementedException ( "CreateEntityFilter is not implemented for MongoDb by default. It should be overrided and implemented by deriving classes!" ) ;