/// <summary>Fetches instances of the the typed view row 'VenueDistanceResultRow' class using a stored procedure call. Async variant </summary> /// <typeparam name="T">The type of the typed view row</typeparam> /// <param name="adapter">The adapter.</param> /// <param name="projectionOfTypedView">The projection of the typed view, created using the method QueryFactory.GetVenueDistanceResultTypedViewProjection().</param> /// <param name="maxDistance">Input parameter of stored procedure</param> /// <param name="lat">Input parameter of stored procedure</param> /// <param name="lng">Input parameter of stored procedure</param> /// <param name="cancellationToken">The cancellation token to use</param> /// <returns>The results in a list.</returns> public static async Task <List <T> > FetchVenueDistanceResultTypedViewAsync <T>(IDataAccessAdapter adapter, SD.LLBLGen.Pro.QuerySpec.DynamicQuery <T> projectionOfTypedView, System.Double maxDistance, System.Double lat, System.Double lng, CancellationToken cancellationToken) { var call = CreateVenueDistanceCall(adapter, maxDistance, lat, lng); var query = call.ToRetrievalQuery(); query.ResultsetNumber = 1; var typedView = await adapter.FetchQueryFromSourceAsync(projectionOfTypedView, query, cancellationToken).ConfigureAwait(false); return(typedView); }
/// <summary>Fetches instances of the the typed view row 'CountEmployeesByClassificationResultRow' class using a stored procedure call. Async variant </summary> /// <typeparam name="T">The type of the typed view row</typeparam> /// <param name="adapter">The adapter.</param> /// <param name="projectionOfTypedView">The projection of the typed view, created using the method QueryFactory.GetCountEmployeesByClassificationResultTypedViewProjection().</param> /// <param name="cancellationToken">The cancellation token to use</param> /// <returns>The results in a list.</returns> public static async Task <List <T> > FetchCountEmployeesByClassificationResultTypedViewAsync <T>(IDataAccessAdapter adapter, SD.LLBLGen.Pro.QuerySpec.DynamicQuery <T> projectionOfTypedView, CancellationToken cancellationToken) { var call = CreateCountEmployeesByClassificationCall(adapter); var query = call.ToRetrievalQuery(); query.ResultsetNumber = 1; var typedView = await adapter.FetchQueryFromSourceAsync(projectionOfTypedView, query, cancellationToken).ConfigureAwait(false); return(typedView); }