public static async Task <List <TReturn> > MapAsync <TValue1, TValue2, TValue3, TValue4, TValue5, TValue6, TValue7, TValue8, TValue9, TValue10, TValue11, TValue12, TReturn>(
     this IResultCursor resultCursor,
     Func <TValue1, TValue2, TValue3, TValue4, TValue5, TValue6, TValue7, TValue8, TValue9, TValue10, TValue11, TValue12, TReturn> mapFunc)
 {
     return(await resultCursor.MapAsync(
                record => record.Map(mapFunc)).ConfigureAwait(false));
 }
        /// <inheritdoc />
        public async ValueTask <IList> ToListAsync(CancellationToken cancellationToken)
        {
            IResultCursor cursor = await _session.RunAsync(Pipeline().Build());

            return(await cursor.MapAsync <T>().ConfigureAwait(false));
        }
 public static async Task <List <TReturn> > MapAsync <TReturn>(
     this IResultCursor resultCursor)
 {
     return(await resultCursor.MapAsync(
                record => record.Map <TReturn>()).ConfigureAwait(false));
 }