 | HdsiServiceClientQueryTModel(ExpressionFuncTModel, Boolean, Int32, NullableInt32, NullableGuid, ModelSortTModel) Method |
Performs a query.
Namespace: SanteDB.Messaging.HDSI.ClientAssembly: SanteDB.Messaging.HDSI.Client (in SanteDB.Messaging.HDSI.Client.dll) Version: 3.0.2081-alpha+cbc29d8899d643bca0b6921497a6c32801355dbe
Syntaxpublic Bundle Query<TModel>(
Expression<Func<TModel, bool>> query,
int offset,
int? count,
Guid? queryId = null,
ModelSort<TModel>[] orderBy = null
)
where TModel : IdentifiedData
Public Function Query(Of TModel As IdentifiedData) (
query As Expression(Of Func(Of TModel, Boolean)),
offset As Integer,
count As Integer?,
Optional queryId As Guid? = Nothing,
Optional orderBy As ModelSort(Of TModel)() = Nothing
) As Bundle
public:
generic<typename TModel>
where TModel : IdentifiedData
Bundle^ Query(
Expression<Func<TModel, bool>^>^ query,
int offset,
Nullable<int> count,
Nullable<Guid> queryId = nullptr,
array<ModelSort<TModel>>^ orderBy = nullptr
)
member Query :
query : Expression<Func<'TModel, bool>> *
offset : int *
count : Nullable<int> *
?queryId : Nullable<Guid> *
?orderBy : ModelSort<'TModel>[]
(* Defaults:
let _queryId = defaultArg queryId null
let _orderBy = defaultArg orderBy null
*)
-> Bundle when 'TModel : IdentifiedDataParameters
- query ExpressionFuncTModel, Boolean
- The query parameters as a LINQ expression.
- offset Int32
- The offset of the query.
- count NullableInt32
- The count of the query results.
- queryId NullableGuid (Optional)
- The stateful query identifier
- orderBy ModelSortTModel (Optional)
- The ordering instructions
Type Parameters
- TModel
- The type of object to query.
Return Value
BundleReturns a Bundle containing the data.
See Also