IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityScalarAsyncExtensions Class > Max Method : Max(IEntityScalarQuery,IProjectionSelector) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function Max( _ ByVal source As IEntityScalarQuery, _ ByVal projectionSelector As IProjectionSelector _ ) As Task(Of Object)
'Usage
Dim source As IEntityScalarQuery Dim projectionSelector As IProjectionSelector Dim value As Task(Of Object) value = EntityScalarAsyncExtensions.Max(source, projectionSelector)
[Extension()] public static Task<object> Max( IEntityScalarQuery source, IProjectionSelector projectionSelector )
public async void AsyncMaxWithPredicate() { var maxFreight = await _entityManager.OrderSummaries.AsScalarAsync().Max(o => o.Freight, (args) => {
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