DomainContext.CreateQuery<TEntity> Method

WCF RIA Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Creates an EntityQuery.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

protected EntityQuery<TEntity> CreateQuery<TEntity>(
	string queryName,
	IDictionary<string, Object> parameters,
	bool hasSideEffects,
	bool isComposable
)
where TEntity : Entity

Type Parameters

TEntity

The entity type the query applies to.

Parameters

queryName
Type: System.String
The name of the query method.
parameters
Type: System.Collections.Generic.IDictionary<String, Object>
Optional parameters to the query method. Specify null if the query operation takes no parameters.
hasSideEffects
Type: System.Boolean
true if the query has side-effects; otherwise, false.
isComposable
Type: System.Boolean
true if the query supports composition; otherwise, false.

Return Value

Type: System.ServiceModel.DomainServices.Client.EntityQuery<TEntity>
The new query.
Show: