IDataPersistenceServiceTDataQuery Method (ExpressionFuncTData, Boolean, IPrincipal) |
Namespace: SanteDB.Core.Services
IQueryResultSet<TData> Query( Expression<Func<TData, bool>> query, IPrincipal principal )
[Missing <returns> documentation for "M:SanteDB.Core.Services.IDataPersistenceService`1.Query(System.Linq.Expressions.Expression{System.Func{`0,System.Boolean}},System.Security.Principal.IPrincipal)"]
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.