Click or drag to resize

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
public Bundle Query<TModel>(
	Expression<Func<TModel, bool>> query,
	int offset,
	int? count,
	bool all,
	Guid? queryId = null,
	ModelSort<TModel>[] orderBy = null
)
where 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: Bundle
Returns a Bundle containing the data.
See Also