Method AsMappedDictionaries
- Namespace
- Open.Database.Extensions.Core
- Assembly
- Open.Database.Extensions.Core.dll
AsMappedDictionaries(QueryResult<IEnumerable<object?[]>>)
Returns an enumerable that dequeues the results and returns a column mapped dictionary for each entry.DBNull values are converted to null.
public static IEnumerable<Dictionary<string, object?>> AsMappedDictionaries(this QueryResult<IEnumerable<object?[]>> source)
Parameters
sourceQueryResult<IEnumerable<object[]>>The query result. Typically produced by a .Retrieve method.
Returns
- IEnumerable<Dictionary<string, object>>
An enumerable that dequeues the results and returns a column mapped dictionary for each entry
AsMappedDictionaries(ValueTask<QueryResult<IEnumerable<object?[]>>>)
Returns an enumerable that dequeues the results and returns a column mapped dictionary for each entry.DBNull values are converted to null.
public static ValueTask<IEnumerable<Dictionary<string, object?>>> AsMappedDictionaries(this ValueTask<QueryResult<IEnumerable<object?[]>>> source)
Parameters
sourceValueTask<QueryResult<IEnumerable<object[]>>>The query result. Typically produced by a .Retrieve method.
Returns
- ValueTask<IEnumerable<Dictionary<string, object>>>
An enumerable that dequeues the results and returns a column mapped dictionary for each entry
AsMappedDictionaries(Task<QueryResult<IEnumerable<object?[]>>>)
Returns an enumerable that dequeues the results and returns a column mapped dictionary for each entry.DBNull values are converted to null.
public static ValueTask<IEnumerable<Dictionary<string, object?>>> AsMappedDictionaries(this Task<QueryResult<IEnumerable<object?[]>>> source)
Parameters
sourceTask<QueryResult<IEnumerable<object[]>>>The query result. Typically produced by a .Retrieve method.
Returns
- ValueTask<IEnumerable<Dictionary<string, object>>>
An enumerable that dequeues the results and returns a column mapped dictionary for each entry