Click or drag to resize

BundlePersistenceServiceQuery(ExpressionFuncBundle, Boolean, IPrincipal) Method

Query for TData whose current version matches query

Namespace: SanteDB.Persistence.Data.Services.Persistence.Collections
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public IQueryResultSet<Bundle> Query(
	Expression<Func<Bundle, bool>> query,
	IPrincipal principal
)

Parameters

query  ExpressionFuncBundle, Boolean
Query.
principal  IPrincipal
The principal under which the query is occurring

Return Value

IQueryResultSetBundle

[Missing <returns> documentation for "M:SanteDB.Persistence.Data.Services.Persistence.Collections.BundlePersistenceService.Query(System.Linq.Expressions.Expression{System.Func{SanteDB.Core.Model.Collection.Bundle,System.Boolean}},System.Security.Principal.IPrincipal)"]

Implements

IDataPersistenceServiceTDataQuery(ExpressionFuncTData, Boolean, IPrincipal)
Exceptions
ExceptionCondition
NotSupportedExceptionThis method is not supported on Bundle
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