| HdsiServiceClientQueryTModel Method (ExpressionFuncTModel, Boolean, Int32, NullableInt32, String, NullableGuid, ModelSortTModel) |
Performs a query.
Namespace:
SanteDB.Messaging.HDSI.Client
Assembly:
SanteDB.Messaging.HDSI.Client (in SanteDB.Messaging.HDSI.Client.dll) Version: 2.2.1
Syntax public Bundle Query<TModel>(
Expression<Func<TModel, bool>> query,
int offset,
int? count,
string[] expandProperties = null,
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 expandProperties As String() = Nothing,
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,
array<String^>^ expandProperties = nullptr,
Nullable<Guid> queryId = nullptr,
array<ModelSort<TModel>>^ orderBy = nullptr
)
member Query :
query : Expression<Func<'TModel, bool>> *
offset : int *
count : Nullable<int> *
?expandProperties : string[] *
?queryId : Nullable<Guid> *
?orderBy : ModelSort<'TModel>[]
(* Defaults:
let _expandProperties = defaultArg expandProperties null
let _queryId = defaultArg queryId null
let _orderBy = defaultArg orderBy null
*)
-> Bundle when 'TModel : IdentifiedData
Parameters
- query
- Type: System.Linq.ExpressionsExpressionFuncTModel, Boolean
The query parameters as a LINQ expression. - offset
- Type: SystemInt32
The offset of the query. - count
- Type: SystemNullableInt32
The count of the query results. - expandProperties (Optional)
- Type: SystemString
An property traversal for which to expand upon. - queryId (Optional)
- Type: SystemNullableGuid
[Missing <param name="queryId"/> documentation for "M:SanteDB.Messaging.HDSI.Client.HdsiServiceClient.Query``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Int32,System.Nullable{System.Int32},System.String[],System.Nullable{System.Guid},SanteDB.Core.Model.Query.ModelSort{``0}[])"]
- orderBy (Optional)
- Type: SanteDB.Core.Model.QueryModelSortTModel
[Missing <param name="orderBy"/> documentation for "M:SanteDB.Messaging.HDSI.Client.HdsiServiceClient.Query``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Int32,System.Nullable{System.Int32},System.String[],System.Nullable{System.Guid},SanteDB.Core.Model.Query.ModelSort{``0}[])"]
Type Parameters
- TModel
- The type of object to query.
Return Value
Type:
BundleReturns a Bundle containing the data.
See Also