DevForce Help Reference
EntityScalarQueryAsyncExtensions Class
Members 


Provides a set of static methods providing for asynchronous execution of scalar queries.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public MustInherit NotInheritable Class EntityScalarQueryAsyncExtensions 
'Usage
 
Dim instance As EntityScalarQueryAsyncExtensions
[Extension()]
public static class EntityScalarQueryAsyncExtensions 
Remarks
To use these extensions, first convert your IdeaBlade.EntityModel.IEntityQuery<T> to an IdeaBlade.EntityModel.IEntityScalarQuery<T> using IdeaBlade.EntityModel.EntityQueryExtensions.AsScalarAsync<T>.

Queries returning a scalar value are called "immediate execution" queries within LINQ. These queries don't actually exist as a query object, but execute immediately to return the desired value. For example, _entityManager.Employees.First() does not return a query, it instead executes immediately, and synchronously, to return the first employee object. When only asynchronous queries are supported, for example in Silverlight applications, converting the query to the IEntityScalarQuery allows you to then use the scalar methods in an asynchronous query.

Inheritance Hierarchy

System.Object
   IdeaBlade.EntityModel.Compat.EntityScalarQueryAsyncExtensions

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityScalarQueryAsyncExtensions Members
IdeaBlade.EntityModel.Compat Namespace
System.Linq
IEntityScalarQuery<T> Interface

Send Feedback