Click or drag to resize

IDataPersistenceServiceTDataQuery Method (ExpressionFuncTData, Boolean, IPrincipal)

Query for TData whose current version matches query

Namespace:  SanteDB.Core.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
IQueryResultSet<TData> Query(
	Expression<Func<TData, bool>> query,
	IPrincipal principal
)

Parameters

query
Type: System.Linq.ExpressionsExpressionFuncTData, Boolean
Query.
principal
Type: System.Security.PrincipalIPrincipal
The principal under which the query is occurring

Return Value

Type: IQueryResultSetTData

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

Remarks

This method will query for all records of type TData. By default the query will only return active records, unless a status parameter is passed, in which case records matching the requested status will be returned.

The result of this call is an IQueryResultSetTData, this class supports delayed execution and yielded returns of records. This means that each call to methods on the return value may result in a query to the database.

See Also