| DataContextCountTModel Method (ExpressionFuncTModel, Boolean) |
Returns only if only one result is available
Namespace:
SanteDB.OrmLite
Assembly:
SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 2.2.1
Syntax public long Count<TModel>(
Expression<Func<TModel, bool>> querySpec
)
Public Function Count(Of TModel) (
querySpec As Expression(Of Func(Of TModel, Boolean))
) As Long
public:
generic<typename TModel>
long long Count(
Expression<Func<TModel, bool>^>^ querySpec
)
member Count :
querySpec : Expression<Func<'TModel, bool>> -> int64
Parameters
- querySpec
- Type: System.Linq.ExpressionsExpressionFuncTModel, Boolean
[Missing <param name="querySpec"/> documentation for "M:SanteDB.OrmLite.DataContext.Count``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})"]
Type Parameters
- TModel
[Missing <typeparam name="TModel"/> documentation for "M:SanteDB.OrmLite.DataContext.Count``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})"]
Return Value
Type:
Int64[Missing <returns> documentation for "M:SanteDB.OrmLite.DataContext.Count``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})"]
See Also