MongoRepository documentation
MongoRepositoryT, TKeyExists Method |
Checks if the entity exists for given predicate.
Namespace: MongoRepository
Assembly: MongoRepository.Net45 (in MongoRepository.Net45.dll) Version: 1.6.11.0 (1.6.11.0)
Syntax
public virtual bool Exists( Expression<Func<T, bool>> predicate )
Public Overridable Function Exists ( predicate As Expression(Of Func(Of T, Boolean)) ) As Boolean
public: virtual bool Exists( Expression<Func<T, bool>^>^ predicate )
abstract Exists : predicate : Expression<Func<'T, bool>> -> bool override Exists : predicate : Expression<Func<'T, bool>> -> bool
Parameters
- predicate
- Type: System.Linq.ExpressionsExpressionFuncT, Boolean
The expression.
Return Value
Type: BooleanTrue when an entity matching the predicate exists, false otherwise.
Implements
IRepositoryT, TKeyExists(ExpressionFuncT, Boolean)See Also