Click or drag to resize

IDataPersistenceServiceTDataQuery Method (ExpressionFuncTData, Boolean, Int32, NullableInt32, Int32, IPrincipal, ModelSortTData)

Note: This API is now obsolete.

Query the specified data

Namespace:  SanteDB.Core.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
[ObsoleteAttribute("Use Query(query, principal) instead", true)]
IEnumerable<TData> Query(
	Expression<Func<TData, bool>> query,
	int offset,
	int? count,
	out int totalResults,
	IPrincipal principal,
	params ModelSort<TData>[] orderBy
)

Parameters

query
Type: System.Linq.ExpressionsExpressionFuncTData, Boolean
Query.
offset
Type: SystemInt32
The offset of the first result
count
Type: SystemNullableInt32
The count of results to include in the response set
totalResults
Type: SystemInt32
The total number of results matching the query
principal
Type: System.Security.PrincipalIPrincipal
The security principal under which the query is occurring
orderBy
Type: SanteDB.Core.Model.QueryModelSortTData
The ordering instrutions to send the query

Return Value

Type: IEnumerableTData

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

See Also