|  | HdsiServiceClientQueryTModel Method (ExpressionFuncTModel, Boolean, Int32, NullableInt32, Boolean, 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
Syntaxpublic Bundle Query<TModel>(
	Expression<Func<TModel, bool>> query,
	int offset,
	int? count,
	bool all,
	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?,
	all As Boolean,
	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, 
	bool all, 
	Nullable<Guid> queryId = nullptr, 
	array<ModelSort<TModel>>^ orderBy = nullptr
)
member Query : 
        query : Expression<Func<'TModel, bool>> * 
        offset : int * 
        count : Nullable<int> * 
        all : bool * 
        ?queryId : Nullable<Guid> * 
        ?orderBy : ModelSort<'TModel>[] 
(* Defaults:
        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.
- all
- Type: SystemBoolean
 Whether the query should return all nested properties.
- 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.Boolean,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.Boolean,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
See Also