Method DequeueAs
- Namespace
- Open.Database.Extensions.Core
- Assembly
- Open.Database.Extensions.Core.dll
DequeueAs<T>(QueryResult<Queue<object?[]>>, params IEnumerable<KeyValuePair<string, string?>>?)
Returns an enumerable that dequeues the results and attempts to map the fields to type T.
public static IEnumerable<T> DequeueAs<T>(this QueryResult<Queue<object?[]>> source, params IEnumerable<KeyValuePair<string, string?>>? fieldMappingOverrides) where T : new()
Parameters
sourceQueryResult<Queue<object[]>>The query result. Typically produced by a .Retrieve method.
fieldMappingOverridesIEnumerable<KeyValuePair<string, string>>An optional override map of field names to column names where the keys are the property names, and values are the column names.
Returns
- IEnumerable<T>
An enumerable that dequeues the results and returns an entity of type T.
Type Parameters
T
Remarks
DBNull values are converted to null.
DequeueAs<T>(QueryResult<Queue<object?[]>>, params IEnumerable<(string Field, string? Column)>?)
Returns an enumerable that dequeues the results and attempts to map the fields to type T.
public static IEnumerable<T> DequeueAs<T>(this QueryResult<Queue<object?[]>> source, params IEnumerable<(string Field, string? Column)>? fieldMappingOverrides) where T : new()
Parameters
sourceQueryResult<Queue<object[]>>The query result. Typically produced by a .Retrieve method.
fieldMappingOverridesIEnumerable<(string Field, string Column)>An optional override map of field names to column names where the keys are the property names, and values are the column names.
Returns
- IEnumerable<T>
An enumerable that dequeues the results and returns an entity of type T.
Type Parameters
T
Remarks
DBNull values are converted to null.
DequeueAs<T>(Task<QueryResult<Queue<object?[]>>>, params IEnumerable<KeyValuePair<string, string?>>?)
Returns an enumerable that dequeues the results and attempts to map the fields to type T.
public static ValueTask<IEnumerable<T>> DequeueAs<T>(this Task<QueryResult<Queue<object?[]>>> source, params IEnumerable<KeyValuePair<string, string?>>? fieldMappingOverrides) where T : new()
Parameters
sourceTask<QueryResult<Queue<object[]>>>The query result. Typically produced by a .Retrieve method.
fieldMappingOverridesIEnumerable<KeyValuePair<string, string>>An optional override map of field names to column names where the keys are the property names, and values are the column names.
Returns
- ValueTask<IEnumerable<T>>
An enumerable that dequeues the results and returns an entity of type T.
Type Parameters
T
Remarks
DBNull values are converted to null.
DequeueAs<T>(ValueTask<QueryResult<Queue<object?[]>>>, params IEnumerable<KeyValuePair<string, string?>>?)
Returns an enumerable that dequeues the results and attempts to map the fields to type T.
public static ValueTask<IEnumerable<T>> DequeueAs<T>(this ValueTask<QueryResult<Queue<object?[]>>> source, params IEnumerable<KeyValuePair<string, string?>>? fieldMappingOverrides) where T : new()
Parameters
sourceValueTask<QueryResult<Queue<object[]>>>The query result. Typically produced by a .Retrieve method.
fieldMappingOverridesIEnumerable<KeyValuePair<string, string>>An optional override map of field names to column names where the keys are the property names, and values are the column names.
Returns
- ValueTask<IEnumerable<T>>
An enumerable that dequeues the results and returns an entity of type T.
Type Parameters
T
Remarks
DBNull values are converted to null.
DequeueAs<T>(Task<QueryResult<Queue<object?[]>>>, params IEnumerable<(string Field, string? Column)>?)
Returns an enumerable that dequeues the results and attempts to map the fields to type T.
public static ValueTask<IEnumerable<T>> DequeueAs<T>(this Task<QueryResult<Queue<object?[]>>> source, params IEnumerable<(string Field, string? Column)>? fieldMappingOverrides) where T : new()
Parameters
sourceTask<QueryResult<Queue<object[]>>>The query result. Typically produced by a .Retrieve method.
fieldMappingOverridesIEnumerable<(string Field, string Column)>An optional override map of field names to column names where the keys are the property names, and values are the column names.
Returns
- ValueTask<IEnumerable<T>>
An enumerable that dequeues the results and returns an entity of type T.
Type Parameters
T
Remarks
DBNull values are converted to null.
DequeueAs<T>(ValueTask<QueryResult<Queue<object?[]>>>, params IEnumerable<(string Field, string? Column)>?)
Returns an enumerable that dequeues the results and attempts to map the fields to type T.
public static ValueTask<IEnumerable<T>> DequeueAs<T>(this ValueTask<QueryResult<Queue<object?[]>>> source, params IEnumerable<(string Field, string? Column)>? fieldMappingOverrides) where T : new()
Parameters
sourceValueTask<QueryResult<Queue<object[]>>>The query result. Typically produced by a .Retrieve method.
fieldMappingOverridesIEnumerable<(string Field, string Column)>An optional override map of field names to column names where the keys are the property names, and values are the column names.
Returns
- ValueTask<IEnumerable<T>>
An enumerable that dequeues the results and returns an entity of type T.
Type Parameters
T
Remarks
DBNull values are converted to null.
DequeueAs<T>(Task<QueryResult<Queue<object?[]>>>)
Returns an enumerable that dequeues the results and attempts to map the fields to type T.
public static ValueTask<IEnumerable<T>> DequeueAs<T>(this Task<QueryResult<Queue<object?[]>>> source) where T : new()
Parameters
sourceTask<QueryResult<Queue<object[]>>>The query result. Typically produced by a .Retrieve method.
Returns
- ValueTask<IEnumerable<T>>
An enumerable that dequeues the results and returns an entity of type T.
Type Parameters
T
Remarks
DBNull values are converted to null.
DequeueAs<T>(ValueTask<QueryResult<Queue<object?[]>>>)
Returns an enumerable that dequeues the results and attempts to map the fields to type T.
public static ValueTask<IEnumerable<T>> DequeueAs<T>(this ValueTask<QueryResult<Queue<object?[]>>> source) where T : new()
Parameters
sourceValueTask<QueryResult<Queue<object[]>>>The query result. Typically produced by a .Retrieve method.
Returns
- ValueTask<IEnumerable<T>>
An enumerable that dequeues the results and returns an entity of type T.
Type Parameters
T
Remarks
DBNull values are converted to null.