@@ -1279,7 +1279,7 @@ internal static async ValueTask<object> AverageInternalAsync<TEntity>(
12791279 statementBuilder ) ;
12801280
12811281 // Converts to property mapped object
1282- var param = ( where != null ) ? await QueryGroup . AsMappedObjectAsync ( [ where . MapTo < TEntity > ( ) ] , connection , transaction , ClassMappedNameCache . Get < TEntity > ( ) ) : null ;
1282+ var param = ( where != null ) ? await QueryGroup . AsMappedObjectAsync ( [ where . MapTo < TEntity > ( ) ] , connection , transaction , ClassMappedNameCache . Get < TEntity > ( ) , cancellationToken ) : null ;
12831283
12841284 // Return the result
12851285 return await AverageInternalBaseAsync < object > ( connection : connection ,
@@ -1730,7 +1730,7 @@ internal static async ValueTask<TResult> AverageInternalAsync<TEntity, TResult>(
17301730 statementBuilder ) ;
17311731
17321732 // Converts to property mapped object
1733- var param = ( where != null ) ? await QueryGroup . AsMappedObjectAsync ( [ where . MapTo < TEntity > ( ) ] , connection , transaction , ClassMappedNameCache . Get < TEntity > ( ) ) : null ;
1733+ var param = ( where != null ) ? await QueryGroup . AsMappedObjectAsync ( [ where . MapTo < TEntity > ( ) ] , connection , transaction , ClassMappedNameCache . Get < TEntity > ( ) , cancellationToken ) : null ;
17341734
17351735 // Return the result
17361736 return await AverageInternalBaseAsync < TResult > ( connection : connection ,
@@ -2346,7 +2346,7 @@ internal static async ValueTask<object> AverageInternalAsync(this IDbConnection
23462346 var param = ( where != null ) ? await QueryGroup . AsMappedObjectAsync ( [ where . MapTo ( null ) ] , connection , transaction , tableName , cancellationToken ) : null ;
23472347
23482348 // Return the result
2349- return AverageInternalBaseAsync < object > ( connection : connection ,
2349+ return await AverageInternalBaseAsync < object > ( connection : connection ,
23502350 request : request ,
23512351 param : param ,
23522352 commandTimeout : commandTimeout ,
@@ -2558,7 +2558,7 @@ internal static async ValueTask<TResult> AverageInternalAsync<TResult>(this IDbC
25582558 statementBuilder ) ;
25592559
25602560 // Converts to property mapped object
2561- var param = ( where != null ) ? await QueryGroup . AsMappedObject ( [ where . MapTo ( null ) ] , connection , transaction , tableName , cancellationToken ) : null ;
2561+ var param = ( where != null ) ? await QueryGroup . AsMappedObjectAsync ( [ where . MapTo ( null ) ] , connection , transaction , tableName , cancellationToken ) : null ;
25622562
25632563 // Return the result
25642564 return await AverageInternalBaseAsync < TResult > ( connection : connection ,
0 commit comments