Click or drag to resize

AdapterExtensionMethods Class

Extension methods to make query execution possible on Adapter.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.QuerySpec.AdapterAdapterExtensionMethods

Namespace:  SD.LLBLGen.Pro.QuerySpec.Adapter
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public static class AdapterExtensionMethods

The AdapterExtensionMethods type exposes the following members.

Methods
  NameDescription
Public methodStatic memberFetchAsDataReader
Fetches the query as an open data reader.
Public methodStatic memberFetchAsDataReaderAsync
Async variant of FetchAsDataReader(IDataAccessAdapter, DynamicQuery, CommandBehavior). Fetches the query as an open data reader.
Public methodStatic memberFetchAsDataTable(IDataAccessAdapter, DynamicQuery)
Fetches the specified query into a new DataTable specified and returns that datatable.
Public methodStatic memberFetchAsDataTable(IDataAccessAdapter, DynamicQuery, DataTable)
Fetches the specified query into the DataTable specified and returns that datatable.
Public methodStatic memberFetchAsDataTableAsync(IDataAccessAdapter, DynamicQuery)
Async variant of FetchAsDataTable(IDataAccessAdapter, DynamicQuery). Fetches the specified query into a new DataTable specified and returns that datatable.
Public methodStatic memberFetchAsDataTableAsync(IDataAccessAdapter, DynamicQuery, DataTable)
Async variant of FetchAsDataTable(IDataAccessAdapter, DynamicQuery, DataTable). Fetches the specified query into the DataTable specified and returns that datatable.
Public methodStatic memberFetchAsDataTableAsync(IDataAccessAdapter, DynamicQuery, CancellationToken)
Async variant of FetchAsDataTable(IDataAccessAdapter, DynamicQuery). Fetches the specified query into a new DataTable specified and returns that datatable.
Public methodStatic memberFetchAsDataTableAsync(IDataAccessAdapter, DynamicQuery, DataTable, CancellationToken)
Async variant of FetchAsDataTable(IDataAccessAdapter, DynamicQuery, DataTable). Fetches the specified query into the DataTable specified and returns that datatable.
Public methodStatic memberFetchAsProjection
Fetches the query as a projection, using the projector specified.
Public methodStatic memberFetchAsProjectionAsync(IDataAccessAdapter, DynamicQuery, IGeneralDataProjector)
Async variant of FetchAsProjection(IDataAccessAdapter, DynamicQuery, IGeneralDataProjector). Fetches the query as a projection, using the projector specified.
Public methodStatic memberFetchAsProjectionAsync(IDataAccessAdapter, DynamicQuery, IGeneralDataProjector, CancellationToken)
Async variant of FetchAsProjection(IDataAccessAdapter, DynamicQuery, IGeneralDataProjector). Fetches the query as a projection, using the projector specified.
Public methodStatic memberFetchFirstT(IDataAccessAdapter, DynamicQueryT)
Fetches the first object of the set returned by the query and returns that object, if any, otherwise null.
Public methodStatic memberFetchFirstTEntity(IDataAccessAdapter, EntityQueryTEntity)
Fetches the first entity of the set returned by the query and returns that entity, if any, otherwise null.
Public methodStatic memberFetchFirstAsyncT(IDataAccessAdapter, DynamicQueryT)
Public methodStatic memberFetchFirstAsyncTEntity(IDataAccessAdapter, EntityQueryTEntity)
Public methodStatic memberFetchFirstAsyncT(IDataAccessAdapter, DynamicQueryT, CancellationToken)
Public methodStatic memberFetchFirstAsyncTEntity(IDataAccessAdapter, EntityQueryTEntity, CancellationToken)
Public methodStatic memberFetchQuery(IDataAccessAdapter, DynamicQuery)
Fetches the query specified and returns the results in plain object arrays, one object array per returned row of the query specified.
Public methodStatic memberFetchQueryTElement(IDataAccessAdapter, DynamicQueryTElement)
Fetches the query specified and returns the results in a list of TElement objects, which are created using the projectorFunc of the query specified.
Public methodStatic memberFetchQueryTEntity(IDataAccessAdapter, EntityQueryTEntity)
Fetches the query specified on the adapter specified. Uses the TEntity type to produce an EntityCollection(Of TEntity) for the results to return
Public methodStatic memberFetchQueryTEntity, TCollection(IDataAccessAdapter, EntityQueryTEntity, TCollection)
Fetches the query specified on the adapter specified into the collectionToFill specified.
Public methodStatic memberFetchQueryAsync(IDataAccessAdapter, DynamicQuery)
Async variant of FetchQuery(IDataAccessAdapter, DynamicQuery). Fetches the query specified and returns the results in plain object arrays, one object array per returned row of the query specified.
Public methodStatic memberFetchQueryAsync(IDataAccessAdapter, DynamicQuery, CancellationToken)
Async variant of FetchQuery(IDataAccessAdapter, DynamicQuery). Fetches the query specified and returns the results in plain object arrays, one object array per returned row of the query specified.
Public methodStatic memberFetchQueryAsyncTElement(IDataAccessAdapter, DynamicQueryTElement)
Public methodStatic memberFetchQueryAsyncTEntity(IDataAccessAdapter, EntityQueryTEntity)
Public methodStatic memberFetchQueryAsyncTElement(IDataAccessAdapter, DynamicQueryTElement, CancellationToken)
Public methodStatic memberFetchQueryAsyncTEntity(IDataAccessAdapter, EntityQueryTEntity, CancellationToken)
Public methodStatic memberFetchQueryAsyncTEntity, TCollection(IDataAccessAdapter, EntityQueryTEntity, TCollection)
Public methodStatic memberFetchQueryAsyncTEntity, TCollection(IDataAccessAdapter, EntityQueryTEntity, TCollection, CancellationToken)
Public methodStatic memberFetchQueryFromSourceTElement
Fetches the query with the projection specified from the source query specified. Typically used to fetch a typed view from a stored procedure source.
Public methodStatic memberFetchQueryFromSourceAsyncTElement(IDataAccessAdapter, DynamicQueryTElement, IRetrievalQuery)
Public methodStatic memberFetchQueryFromSourceAsyncTElement(IDataAccessAdapter, DynamicQueryTElement, IRetrievalQuery, CancellationToken)
Public methodStatic memberFetchScalarTValue
Fetches a scalar value using the query specified, and returns this value typed as TValue, using a cast. The query specified will be converted to a scalar query prior to execution.
Public methodStatic memberFetchScalarAsyncTValue(IDataAccessAdapter, DynamicQuery)
Async variant of FetchScalarTValue(IDataAccessAdapter, DynamicQuery). Fetches a scalar value using the query specified, and returns this value typed as TValue, using a cast. The query specified will be converted to a scalar query prior to execution.
Public methodStatic memberFetchScalarAsyncTValue(IDataAccessAdapter, DynamicQuery, CancellationToken)
Async variant of FetchScalarTValue(IDataAccessAdapter, DynamicQuery). Fetches a scalar value using the query specified, and returns this value typed as TValue, using a cast. The query specified will be converted to a scalar query prior to execution.
Public methodStatic memberFetchSingleT(IDataAccessAdapter, DynamicQueryT)
Fetches the single object of the set returned by the query and returns that object. If there are no elements or more than 1 element, a NotSupportedException will be thrown.
Public methodStatic memberFetchSingleTEntity(IDataAccessAdapter, EntityQueryTEntity)
Fetches the single entity of the set returned by the query and returns that entity. If there are no elements or more than 1 element, a NotSupportedException will be thrown.
Public methodStatic memberFetchSingleAsyncT(IDataAccessAdapter, DynamicQueryT)
Public methodStatic memberFetchSingleAsyncTEntity(IDataAccessAdapter, EntityQueryTEntity)
Public methodStatic memberFetchSingleAsyncT(IDataAccessAdapter, DynamicQueryT, CancellationToken)
Public methodStatic memberFetchSingleAsyncTEntity(IDataAccessAdapter, EntityQueryTEntity, CancellationToken)
Top
See Also