MongoRepository documentation
IRepositoryT, 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
bool Exists( Expression<Func<T, bool>> predicate )
Function Exists ( predicate As Expression(Of Func(Of T, Boolean)) ) As Boolean
bool Exists( Expression<Func<T, bool>^>^ predicate )
abstract 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.
See Also