DevForce Help Reference
EntityScalarAsyncExtensions Class
Members 


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

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

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

Send Feedback