Class SyncMappedViewExtensions
- Namespace
- Open.Database.Extensions.Synchronous
- Assembly
- Open.Database.Extensions.Core.dll
Blocking terminals on a mapped query or command view (Map<T>() on a command or a query definition, with or without Skip and Take), which hold the calling thread until the rows are read.
public static class SyncMappedViewExtensions
- Inheritance
-
SyncMappedViewExtensions
- Inherited Members
Remarks
Add using Open.Database.Extensions.Synchronous; to use them.
A reader or a DataTable view (MappedReader<T>, MappedTable<T>) keeps its own terminals.
Methods
- FirstOrDefault<T>(MappedCommand<T>)
Reads the first mapped row.
- FirstOrDefault<T>(MappedQueryWithSkip<T>)
Reads the first mapped row.
- FirstOrDefault<T>(MappedQueryWithTake<T>)
Reads the first mapped row.
- FirstOrDefault<T>(MappedQuery<T>)
Reads the first mapped row.
- First<T>(MappedCommand<T>)
Reads the first mapped row; throws if the query returns no rows.
- First<T>(MappedQueryWithSkip<T>)
Reads the first mapped row; throws if the query returns no rows.
- First<T>(MappedQueryWithTake<T>)
Reads the first mapped row; throws if the query returns no rows.
- First<T>(MappedQuery<T>)
Reads the first mapped row; throws if the query returns no rows.
- SingleOrDefault<T>(MappedCommand<T>)
Reads the only mapped row.
- SingleOrDefault<T>(MappedQueryWithSkip<T>)
Reads the only mapped row.
- SingleOrDefault<T>(MappedQueryWithTake<T>)
Reads the only mapped row.
- SingleOrDefault<T>(MappedQuery<T>)
Reads the only mapped row.
- Single<T>(MappedCommand<T>)
Reads the only mapped row; throws if the query returns no rows or more than one.
- Single<T>(MappedQueryWithSkip<T>)
Reads the only mapped row; throws if the query returns no rows or more than one.
- Single<T>(MappedQueryWithTake<T>)
Reads the only mapped row; throws if the query returns no rows or more than one.
- Single<T>(MappedQuery<T>)
Reads the only mapped row; throws if the query returns no rows or more than one.
- ToArray<T>(MappedCommand<T>)
Reads every mapped row into a new array.
- ToArray<T>(MappedQueryWithSkip<T>)
Reads every mapped row into a new array.
- ToArray<T>(MappedQueryWithTake<T>)
Reads every mapped row into a new array.
- ToArray<T>(MappedQuery<T>)
Reads every mapped row into a new array.
- ToDictionary<T, TKey>(MappedCommand<T>, Func<T, TKey>, IEqualityComparer<TKey>?)
Reads every mapped row into a new Dictionary<TKey, TValue>, keyed by
keySelector.
- ToDictionary<T, TKey>(MappedQueryWithSkip<T>, Func<T, TKey>, IEqualityComparer<TKey>?)
Reads every mapped row into a new Dictionary<TKey, TValue>, keyed by
keySelector.
- ToDictionary<T, TKey>(MappedQueryWithTake<T>, Func<T, TKey>, IEqualityComparer<TKey>?)
Reads every mapped row into a new Dictionary<TKey, TValue>, keyed by
keySelector.
- ToDictionary<T, TKey>(MappedQuery<T>, Func<T, TKey>, IEqualityComparer<TKey>?)
Reads every mapped row into a new Dictionary<TKey, TValue>, keyed by
keySelector.
- ToDictionary<T, TKey, TValue>(MappedCommand<T>, Func<T, TKey>, Func<T, TValue>, IEqualityComparer<TKey>?)
Reads every mapped row into a new Dictionary<TKey, TValue>, keyed by
keySelector, with the valuevalueSelectorreturns for the row.
- ToDictionary<T, TKey, TValue>(MappedQueryWithSkip<T>, Func<T, TKey>, Func<T, TValue>, IEqualityComparer<TKey>?)
Reads every mapped row into a new Dictionary<TKey, TValue>, keyed by
keySelector, with the valuevalueSelectorreturns for the row.
- ToDictionary<T, TKey, TValue>(MappedQueryWithTake<T>, Func<T, TKey>, Func<T, TValue>, IEqualityComparer<TKey>?)
Reads every mapped row into a new Dictionary<TKey, TValue>, keyed by
keySelector, with the valuevalueSelectorreturns for the row.
- ToDictionary<T, TKey, TValue>(MappedQuery<T>, Func<T, TKey>, Func<T, TValue>, IEqualityComparer<TKey>?)
Reads every mapped row into a new Dictionary<TKey, TValue>, keyed by
keySelector, with the valuevalueSelectorreturns for the row.
- ToHashSet<T>(MappedCommand<T>, IEqualityComparer<T>?)
Reads every mapped row into a new HashSet<T>.
- ToHashSet<T>(MappedQueryWithSkip<T>, IEqualityComparer<T>?)
Reads every mapped row into a new HashSet<T>.
- ToHashSet<T>(MappedQueryWithTake<T>, IEqualityComparer<T>?)
Reads every mapped row into a new HashSet<T>.
- ToHashSet<T>(MappedQuery<T>, IEqualityComparer<T>?)
Reads every mapped row into a new HashSet<T>.
- ToImmutableArray<T>(MappedCommand<T>)
Reads every mapped row into a new ImmutableArray<T>.
- ToImmutableArray<T>(MappedQueryWithSkip<T>)
Reads every mapped row into a new ImmutableArray<T>.
- ToImmutableArray<T>(MappedQueryWithTake<T>)
Reads every mapped row into a new ImmutableArray<T>.
- ToImmutableArray<T>(MappedQuery<T>)
Reads every mapped row into a new ImmutableArray<T>.
- ToList<T>(MappedCommand<T>)
Reads every mapped row into a new List<T>.
- ToList<T>(MappedQueryWithSkip<T>)
Reads every mapped row into a new List<T>.
- ToList<T>(MappedQueryWithTake<T>)
Reads every mapped row into a new List<T>.
- ToList<T>(MappedQuery<T>)
Reads every mapped row into a new List<T>.