IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > ExecuteAsync Method : ExecuteAsync(IEntityQuery) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function ExecuteAsync( _ ByVal query As IEntityQuery _ ) As Task(Of IEnumerable)
'Usage
Dim query As IEntityQuery Dim value As Task(Of IEnumerable) value = EntityQueryExtensions.ExecuteAsync(query)
[Extension()] public static Task<IEnumerable> ExecuteAsync( IEntityQuery query )
DomainModelEntityManager mgr = new DomainModelEntityManager(); var query = mgr.Customers.Where(c => c.Country == "UK"); var customers = await query.ExecuteAsync();
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