| 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
)
<ObsoleteAttribute("Use Query(query, principal) instead", true)>
Function Query (
query As Expression(Of Func(Of TData, Boolean)),
offset As Integer,
count As Integer?,
<OutAttribute> ByRef totalResults As Integer,
principal As IPrincipal,
ParamArray orderBy As ModelSort(Of TData)()
) As IEnumerable(Of TData)
[ObsoleteAttribute(L"Use Query(query, principal) instead", true)]
IEnumerable<TData>^ Query(
Expression<Func<TData, bool>^>^ query,
int offset,
Nullable<int> count,
[OutAttribute] int% totalResults,
IPrincipal^ principal,
... array<ModelSort<TData>>^ orderBy
)
[<ObsoleteAttribute("Use Query(query, principal) instead", true)>]
abstract Query :
query : Expression<Func<'TData, bool>> *
offset : int *
count : Nullable<int> *
totalResults : int byref *
principal : IPrincipal *
orderBy : ModelSort<'TData>[] -> IEnumerable<'TData>
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