DomainContext.CreateQuery<TEntity> Method
[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)
Syntax
'Declaration
Protected Function CreateQuery(Of TEntity As Entity) ( _
queryName As String, _
parameters As IDictionary(Of String, Object), _
hasSideEffects As Boolean, _
isComposable As Boolean _
) As EntityQuery(Of TEntity)
'Usage
Dim queryName As String
Dim parameters As IDictionary(Of String, Object)
Dim hasSideEffects As Boolean
Dim isComposable As Boolean
Dim returnValue As EntityQuery(Of TEntity)
returnValue = Me.CreateQuery(queryName, _
parameters, hasSideEffects, isComposable)
protected EntityQuery<TEntity> CreateQuery<TEntity>(
string queryName,
IDictionary<string, Object> parameters,
bool hasSideEffects,
bool isComposable
)
where TEntity : Entity
protected:
generic<typename TEntity>
where TEntity : Entity
EntityQuery<TEntity>^ CreateQuery(
String^ queryName,
IDictionary<String^, Object^>^ parameters,
bool hasSideEffects,
bool isComposable
)
member CreateQuery :
queryName:string *
parameters:IDictionary<string, Object> *
hasSideEffects:bool *
isComposable:bool -> EntityQuery<'TEntity> when 'TEntity : Entity
JScript does not support generic types and methods.
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 nulla null reference (Nothing in Visual Basic) 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.