Click or drag to resize

IDataPersistenceServiceTDataCount Method

Note: This API is now obsolete.

Performs a fast count

Namespace:  SanteDB.Core.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
[ObsoleteAttribute("Use Query(Expression).Count()", true)]
long Count(
	Expression<Func<TData, bool>> query,
	IPrincipal authContext = null
)

Parameters

query
Type: System.Linq.ExpressionsExpressionFuncTData, Boolean

[Missing <param name="query"/> documentation for "M:SanteDB.Core.Services.IDataPersistenceService`1.Count(System.Linq.Expressions.Expression{System.Func{`0,System.Boolean}},System.Security.Principal.IPrincipal)"]

authContext (Optional)
Type: System.Security.PrincipalIPrincipal

[Missing <param name="authContext"/> documentation for "M:SanteDB.Core.Services.IDataPersistenceService`1.Count(System.Linq.Expressions.Expression{System.Func{`0,System.Boolean}},System.Security.Principal.IPrincipal)"]

Return Value

Type: Int64

[Missing <returns> documentation for "M:SanteDB.Core.Services.IDataPersistenceService`1.Count(System.Linq.Expressions.Expression{System.Func{`0,System.Boolean}},System.Security.Principal.IPrincipal)"]

See Also