Class QueryBatch.ResultGenerator<T, TTree>
- Namespace
- The.Entities
- Assembly
- Instagile.dll
public sealed class QueryBatch.ResultGenerator<T, TTree> where TTree : IRelationshipTree<TTree>
Type Parameters
T
TTree
- Inheritance
-
QueryBatch.ResultGenerator<T, TTree>
- Inherited Members
-
Methods
All(Expression<Func<T, bool>>)
public QueryBatch.Result<bool> All(Expression<Func<T, bool>> predicate)
Parameters
predicate Expression<Func<T, bool>>
Returns
- QueryBatch.Result<bool>
Any()
public QueryBatch.Result<bool> Any()
Returns
- QueryBatch.Result<bool>
Any(Expression<Func<T, bool>>)
public QueryBatch.Result<bool> Any(Expression<Func<T, bool>> predicate)
Parameters
predicate Expression<Func<T, bool>>
Returns
- QueryBatch.Result<bool>
Count()
public QueryBatch.Result<int> Count()
Returns
- QueryBatch.Result<int>
Count(Expression<Func<T, bool>>)
public QueryBatch.Result<int> Count(Expression<Func<T, bool>> predicate)
Parameters
predicate Expression<Func<T, bool>>
Returns
- QueryBatch.Result<int>
First()
public QueryBatch.Result<T> First()
Returns
- QueryBatch.Result<T>
First(Expression<Func<T, bool>>)
public QueryBatch.Result<T> First(Expression<Func<T, bool>> predicate)
Parameters
predicate Expression<Func<T, bool>>
Returns
- QueryBatch.Result<T>
FirstOrDefault()
public QueryBatch.Result<T?> FirstOrDefault()
Returns
- QueryBatch.Result<T>
FirstOrDefault(Expression<Func<T, bool>>)
public QueryBatch.Result<T?> FirstOrDefault(Expression<Func<T, bool>> predicate)
Parameters
predicate Expression<Func<T, bool>>
Returns
- QueryBatch.Result<T>
Single()
public QueryBatch.Result<T> Single()
Returns
- QueryBatch.Result<T>
Single(Expression<Func<T, bool>>)
public QueryBatch.Result<T> Single(Expression<Func<T, bool>> predicate)
Parameters
predicate Expression<Func<T, bool>>
Returns
- QueryBatch.Result<T>
SingleOrDefault()
public QueryBatch.Result<T?> SingleOrDefault()
Returns
- QueryBatch.Result<T>
SingleOrDefault(Expression<Func<T, bool>>)
public QueryBatch.Result<T?> SingleOrDefault(Expression<Func<T, bool>> predicate)
Parameters
predicate Expression<Func<T, bool>>
Returns
- QueryBatch.Result<T>
Sum()
public QueryBatch.Result<T> Sum()
Returns
- QueryBatch.Result<T>
Sum<U>(Expression<Func<T, U>>)
public QueryBatch.Result<U> Sum<U>(Expression<Func<T, U>> selector)
Parameters
selector Expression<Func<T, U>>
Returns
- QueryBatch.Result<U>
Type Parameters
U
ToArray()
public QueryBatch.Result<T[]> ToArray()
Returns
- QueryBatch.Result<T[]>
ToDictionary<TKey>(Func<T, TKey>)
public QueryBatch.Result<Dictionary<TKey, T>> ToDictionary<TKey>(Func<T, TKey> keySelector) where TKey : notnull
Parameters
keySelector Func<T, TKey>
Returns
- QueryBatch.Result<Dictionary<TKey, T>>
Type Parameters
TKey
ToDictionary<TKey>(Func<T, TKey>, IEqualityComparer<TKey>)
public QueryBatch.Result<Dictionary<TKey, T>> ToDictionary<TKey>(Func<T, TKey> keySelector, IEqualityComparer<TKey> comparer) where TKey : notnull
Parameters
keySelector Func<T, TKey>
comparer IEqualityComparer<TKey>
Returns
- QueryBatch.Result<Dictionary<TKey, T>>
Type Parameters
TKey
ToDictionary<TKey, TElement>(Func<T, TKey>, Func<T, TElement>)
public QueryBatch.Result<Dictionary<TKey, TElement>> ToDictionary<TKey, TElement>(Func<T, TKey> keySelector, Func<T, TElement> elementSelector) where TKey : notnull
Parameters
keySelector Func<T, TKey>
elementSelector Func<T, TElement>
Returns
- QueryBatch.Result<Dictionary<TKey, TElement>>
Type Parameters
TKey
TElement
ToDictionary<TKey, TElement>(Func<T, TKey>, Func<T, TElement>, IEqualityComparer<TKey>)
public QueryBatch.Result<Dictionary<TKey, TElement>> ToDictionary<TKey, TElement>(Func<T, TKey> keySelector, Func<T, TElement> elementSelector, IEqualityComparer<TKey> comparer) where TKey : notnull
Parameters
keySelector Func<T, TKey>
elementSelector Func<T, TElement>
comparer IEqualityComparer<TKey>
Returns
- QueryBatch.Result<Dictionary<TKey, TElement>>
Type Parameters
TKey
TElement
ToHashSet()
public QueryBatch.Result<HashSet<T>> ToHashSet()
Returns
- QueryBatch.Result<HashSet<T>>
ToIDPairs(RelationshipInfo)
public QueryBatch.Result<RelationshipPairs> ToIDPairs(RelationshipInfo relationshipInfo)
Parameters
relationshipInfo RelationshipInfo
Returns
- QueryBatch.Result<RelationshipPairs>
ToList()
public QueryBatch.Result<List<T>> ToList()
Returns
- QueryBatch.Result<List<T>>
ToLookup<TKey>(Func<T, TKey>)
public QueryBatch.Result<ILookup<TKey, T>> ToLookup<TKey>(Func<T, TKey> keySelector)
Parameters
keySelector Func<T, TKey>
Returns
- QueryBatch.Result<ILookup<TKey, T>>
Type Parameters
TKey
ToLookup<TKey>(Func<T, TKey>, IEqualityComparer<TKey>)
public QueryBatch.Result<ILookup<TKey, T>> ToLookup<TKey>(Func<T, TKey> keySelector, IEqualityComparer<TKey> comparer)
Parameters
keySelector Func<T, TKey>
comparer IEqualityComparer<TKey>
Returns
- QueryBatch.Result<ILookup<TKey, T>>
Type Parameters
TKey
ToLookup<TKey, TElement>(Func<T, TKey>, Func<T, TElement>)
public QueryBatch.Result<ILookup<TKey, TElement>> ToLookup<TKey, TElement>(Func<T, TKey> keySelector, Func<T, TElement> elementSelector)
Parameters
keySelector Func<T, TKey>
elementSelector Func<T, TElement>
Returns
- QueryBatch.Result<ILookup<TKey, TElement>>
Type Parameters
TKey
TElement
ToLookup<TKey, TElement>(Func<T, TKey>, Func<T, TElement>, IEqualityComparer<TKey>)
public QueryBatch.Result<ILookup<TKey, TElement>> ToLookup<TKey, TElement>(Func<T, TKey> keySelector, Func<T, TElement> elementSelector, IEqualityComparer<TKey> comparer)
Parameters
keySelector Func<T, TKey>
elementSelector Func<T, TElement>
comparer IEqualityComparer<TKey>
Returns
- QueryBatch.Result<ILookup<TKey, TElement>>
Type Parameters
TKey
TElement