Click or drag to resize

BasePersistenceServiceTModel, TDbModelCount Method

Count the

Namespace: SanteDB.Persistence.Data.Services.Persistence
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public virtual long Count(
	Expression<Func<TModel, bool>> query,
	IPrincipal authContext = null
)

Parameters

query  ExpressionFuncTModel, Boolean
The query for which count is to be executed
authContext  IPrincipal  (Optional)
The principal/authentication context being used

Return Value

Int64
The count of matching records

Implements

IDataPersistenceServiceTDataCount(ExpressionFuncTData, Boolean, IPrincipal)
See Also