Class AsyncExtensions
Inherited Members
Namespace: XData.Async
Assembly: XData.docfx.dll
Syntax
public static class AsyncExtensions
Methods
| Improve this Doc View SourceAddAsync<TFrom, T>(IRepository<T>, IEnumerable<TFrom>, DataSubmitFlag)
Asynchronous wrapper over Add
Declaration
public static Task<bool> AddAsync<TFrom, T>(this IRepository<T> source, IEnumerable<TFrom> objects, DataSubmitFlag flag = DataSubmitFlag.None)
where TFrom : class where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IRepository<T> | source | Repository to submit |
IEnumerable<TFrom> | objects | Objects to submit |
DataSubmitFlag | flag | Data submit flag |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
TFrom | |
T |
AddAsync<TFrom, T>(IRepository<T>, IEnumerable<TFrom>, Mapping<TFrom, T>, DataSubmitFlag)
Asynchronous wrapper over Add
Declaration
public static Task<bool> AddAsync<TFrom, T>(this IRepository<T> source, IEnumerable<TFrom> objects, Mapping<TFrom, T> mapping, DataSubmitFlag flag = DataSubmitFlag.None)
where TFrom : class where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IRepository<T> | source | Repository to submit |
IEnumerable<TFrom> | objects | Objects to submit |
Mapping<TFrom, T> | mapping | Property mapping |
DataSubmitFlag | flag | Data submit flag |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
TFrom | |
T |
AllAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over All() LINQ function
Declaration
public static Task<bool> AllAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over All() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AllAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over All() LINQ function
Declaration
public static Task<bool> AllAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over All() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AllAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over All() LINQ function
Declaration
public static Task<bool> AllAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over All() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AnyAsync<T>(IQueryable<T>)
Asynchronous wrapper over Any() LINQ function
Declaration
public static Task<bool> AnyAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Any() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AnyAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over Any() LINQ function
Declaration
public static Task<bool> AnyAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Any() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AnyAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over Any() LINQ function
Declaration
public static Task<bool> AnyAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Any() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AnyAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over Any() LINQ function
Declaration
public static Task<bool> AnyAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Any() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Decimal>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<decimal> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, decimal>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Decimal>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Decimal> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Decimal>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<decimal> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, decimal>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Decimal>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Decimal> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Double>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, double>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Double>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Double>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, double>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Double>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Int32>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, int>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Int32>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Int32>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, int>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Int32>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Int64>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, long>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Int64>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Int64>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, long>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Int64>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Decimal>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<decimal?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, decimal?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Decimal>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Decimal>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Decimal>>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<decimal?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, decimal?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Decimal>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Decimal>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Double>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, double?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Double>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Double>>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, double?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Double>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Int32>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, int?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int32>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Int32>>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, int?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int32>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Int64>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, long?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int64>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Int64>>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, long?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int64>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Single>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<float?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, float?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Single>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Single>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Single>>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<float?> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, float?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Single>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Single>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Single>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<float> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, float>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Single>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Single> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IQueryable<T>, Expression<Func<T, Single>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<float> AverageAsync<T>(this IQueryable<T> source, Expression<Func<T, float>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Single>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Single> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Decimal>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<decimal> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, decimal>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Decimal>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Decimal> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Double>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, double>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Double>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Int32>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, int>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Int32>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Int64>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, long>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Int64>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Decimal>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<decimal?> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, decimal?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Decimal>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Decimal>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Double>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, double?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Double>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Int32>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, int?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int32>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Int64>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<double?> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, long?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int64>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Single>>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<float?> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, float?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Single>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Single>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
AverageAsync<T>(IDataQuery<T>, Expression<Func<T, Single>>)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<float> AverageAsync<T>(this IDataQuery<T> source, Expression<Func<T, float>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Single>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Single> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ClearAsync<T>(IRepository<T>, Expression<Func<T, Boolean>>, DataSubmitFlag)
Asynchronous wrapper over Clear
Declaration
public static Task<bool> ClearAsync<T>(this IRepository<T> repository, Expression<Func<T, bool>> predicate, DataSubmitFlag flag = DataSubmitFlag.None)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IRepository<T> | repository | Repository to submit |
Expression<Func<T, Boolean>> | predicate | Predicate to filer repository before clear |
DataSubmitFlag | flag | Data submit flag |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ClearAsync<T>(IRepository<T>, DataSubmitFlag)
Asynchronous wrapper over Clear
Declaration
public static Task<bool> ClearAsync<T>(this IRepository<T> repository, DataSubmitFlag flag = DataSubmitFlag.None)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IRepository<T> | repository | Repository to submit |
DataSubmitFlag | flag | Data submit flag |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ContainsAsync<T>(IQueryable<T>, T, IEqualityComparer<T>)
Asynchronous wrapper over Contains() LINQ function
Declaration
public static Task<bool> ContainsAsync<T>(this IQueryable<T> source, T item, IEqualityComparer<T> comparer)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
T | item | The object to locate in the sequence. |
IEqualityComparer<T> | comparer | Object comparer |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Contains() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ContainsAsync<T>(IQueryable<T>, T, IEqualityComparer<T>, CancellationToken)
Asynchronous wrapper over Contains() LINQ function
Declaration
public static Task<bool> ContainsAsync<T>(this IQueryable<T> source, T item, IEqualityComparer<T> comparer, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
T | item | The object to locate in the sequence. |
IEqualityComparer<T> | comparer | Object comparer |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Contains() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ContainsAsync<T>(IQueryable<T>, T, Func<T, Object>[])
Asynchronous wrapper over Contains() LINQ function
Declaration
public static Task<bool> ContainsAsync<T>(this IQueryable<T> source, T item, params Func<T, object>[] properties)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
T | item | The object to locate in the sequence. |
Func<T, Object>[] | properties | Object properties to compare |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Contains() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ContainsAsync<T>(IDataQuery<T>, T)
Asynchronous wrapper over Contains() LINQ function
Declaration
public static Task<bool> ContainsAsync<T>(this IDataQuery<T> source, T item)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
T | item | The object to locate in the sequence. |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Contains() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ContainsAsync<T>(IDataQuery<T>, T, IEqualityComparer<T>)
Asynchronous wrapper over Contains() LINQ function
Declaration
public static Task<bool> ContainsAsync<T>(this IDataQuery<T> source, T item, IEqualityComparer<T> comparer)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
T | item | The object to locate in the sequence. |
IEqualityComparer<T> | comparer | Object comparer |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous call over Contains() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
CountAsync<T>(IQueryable<T>)
Asynchronous wrapper over Count() LINQ function
Declaration
public static Task<int> CountAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<Int32> | Asynchronous call over Count() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
CountAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over Count() LINQ function
Declaration
public static Task<int> CountAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<Int32> | Asynchronous call over Count() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
CountAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over Count() LINQ function
Declaration
public static Task<int> CountAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Int32> | Asynchronous call over Count() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
CountAsync<T>(IDataQuery<T>)
Asynchronous wrapper over Count() LINQ function
Declaration
public static Task<int> CountAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<Int32> | Asynchronous call over Count() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
CountAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over Count() LINQ function
Declaration
public static Task<int> CountAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<Int32> | Asynchronous call over Count() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ExecuteAsync<T>(T, Expression<Func<CustomLogic<T>>>, IDictionary<String, Action<Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this T obj, Expression<Func<CustomLogic<T>>> routine, IDictionary<string, Action<byte[]>> post)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object |
Expression<Func<CustomLogic<T>>> | routine | Custom logic name |
IDictionary<String, Action<Byte[]>> | post | Post data handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(T, Expression<Func<CustomLogic<T>>>, IDictionary<String, Action<Byte[]>>, IDictionary<String, Func<Byte[], Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this T obj, Expression<Func<CustomLogic<T>>> routine, IDictionary<string, Action<byte[]>> post, IDictionary<string, Func<byte[], byte[]>> callback)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object |
Expression<Func<CustomLogic<T>>> | routine | Custom logic name |
IDictionary<String, Action<Byte[]>> | post | Post data handlers |
IDictionary<String, Func<Byte[], Byte[]>> | callback | Callback handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(T, Expression<Func<CustomLogic<T>>>, IDictionary<String, Func<Byte[], Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this T obj, Expression<Func<CustomLogic<T>>> routine, IDictionary<string, Func<byte[], byte[]>> callback)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object |
Expression<Func<CustomLogic<T>>> | routine | Custom logic name |
IDictionary<String, Func<Byte[], Byte[]>> | callback | Callback handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(T, String, IDictionary<String, Action<Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this T obj, string key, IDictionary<string, Action<byte[]>> post)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object |
String | key | Custom logic name |
IDictionary<String, Action<Byte[]>> | post | Post data handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(T, String, IDictionary<String, Action<Byte[]>>, IDictionary<String, Func<Byte[], Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this T obj, string key, IDictionary<string, Action<byte[]>> post, IDictionary<string, Func<byte[], byte[]>> callback)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object |
String | key | Custom logic name |
IDictionary<String, Action<Byte[]>> | post | Post data handlers |
IDictionary<String, Func<Byte[], Byte[]>> | callback | Callback handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(T, String, IDictionary<String, Func<Byte[], Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this T obj, string key, IDictionary<string, Func<byte[], byte[]>> callback)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object |
String | key | Custom logic name |
IDictionary<String, Func<Byte[], Byte[]>> | callback | Callback handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(ICollection<T>, Expression<Func<CustomLogic<T>>>, IDictionary<String, Action<Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this ICollection<T> objects, Expression<Func<CustomLogic<T>>> routine, IDictionary<string, Action<byte[]>> post)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
ICollection<T> | objects | Data objects collection |
Expression<Func<CustomLogic<T>>> | routine | Custom logic name |
IDictionary<String, Action<Byte[]>> | post | Post data handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(ICollection<T>, Expression<Func<CustomLogic<T>>>, IDictionary<String, Action<Byte[]>>, IDictionary<String, Func<Byte[], Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this ICollection<T> objects, Expression<Func<CustomLogic<T>>> routine, IDictionary<string, Action<byte[]>> post, IDictionary<string, Func<byte[], byte[]>> callback)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
ICollection<T> | objects | Data objects collection |
Expression<Func<CustomLogic<T>>> | routine | Custom logic name |
IDictionary<String, Action<Byte[]>> | post | Post data handlers |
IDictionary<String, Func<Byte[], Byte[]>> | callback | Callback handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(ICollection<T>, Expression<Func<CustomLogic<T>>>, IDictionary<String, Func<Byte[], Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this ICollection<T> objects, Expression<Func<CustomLogic<T>>> routine, IDictionary<string, Func<byte[], byte[]>> callback)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
ICollection<T> | objects | Data objects collection |
Expression<Func<CustomLogic<T>>> | routine | Custom logic name |
IDictionary<String, Func<Byte[], Byte[]>> | callback | Callback handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(ICollection<T>, String, IDictionary<String, Action<Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this ICollection<T> objects, string key, IDictionary<string, Action<byte[]>> post)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
ICollection<T> | objects | Data objects collection |
String | key | Custom logic name |
IDictionary<String, Action<Byte[]>> | post | Post data handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(ICollection<T>, String, IDictionary<String, Action<Byte[]>>, IDictionary<String, Func<Byte[], Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this ICollection<T> objects, string key, IDictionary<string, Action<byte[]>> post, IDictionary<string, Func<byte[], byte[]>> callback)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
ICollection<T> | objects | Data objects collection |
String | key | Custom logic name |
IDictionary<String, Action<Byte[]>> | post | Post data handlers |
IDictionary<String, Func<Byte[], Byte[]>> | callback | Callback handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteAsync<T>(ICollection<T>, String, IDictionary<String, Func<Byte[], Byte[]>>)
Asynchronous wrapper over Execute
Declaration
public static Task<bool> ExecuteAsync<T>(this ICollection<T> objects, string key, IDictionary<string, Func<byte[], byte[]>> callback)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
ICollection<T> | objects | Data objects collection |
String | key | Custom logic name |
IDictionary<String, Func<Byte[], Byte[]>> | callback | Callback handlers |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
ExecuteNonQueryAsync(IDataScope, Query)
Asynchronous wrapper over ExecuteNonQuery(Query) call
Declaration
public static Task ExecuteNonQueryAsync(this IDataScope dataScope, Query query)
Parameters
Type | Name | Description |
---|---|---|
IDataScope | dataScope | Data scope |
Query | query | Query |
Returns
Type | Description |
---|---|
Task | Asynchronous call over ExecuteNonQuery |
ExecuteScalarAsync<TResult>(IDataScope, Query)
Asynchronous wrapper over ExecuteScalar<TResult>(Query) call
Declaration
public static Task<TResult> ExecuteScalarAsync<TResult>(this IDataScope dataScope, Query query)
Parameters
Type | Name | Description |
---|---|---|
IDataScope | dataScope | Data scope |
Query | query | Query |
Returns
Type | Description |
---|---|
Task<TResult> | Asynchronous call over ExecuteScalar |
Type Parameters
Name | Description |
---|---|
TResult |
ExecuteSqlBlockAsync(IDataScope, Expression<SqlBlockDefinition>, Expression<Func<ISqlParamAdapter, ISqlParam>>[])
Asynchronous wrapper over SQL block execution
Declaration
public static Task ExecuteSqlBlockAsync(this IDataScope dataScope, Expression<SqlBlockDefinition> block, params Expression<Func<ISqlParamAdapter, ISqlParam>>[] parameters)
Parameters
Type | Name | Description |
---|---|---|
IDataScope | dataScope | Data scope |
Expression<SqlBlockDefinition> | block | Sql block structure |
Expression<Func<ISqlParamAdapter, ISqlParam>>[] | parameters | Sql block parameters |
Returns
Type | Description |
---|---|
Task | Asynchronous wrapper over SQL block execution |
ExecuteSqlBlockAsync(IDataScope, CancellationToken, Expression<SqlBlockDefinition>, Expression<Func<ISqlParamAdapter, ISqlParam>>[])
Asynchronous wrapper over SQL block execution
Declaration
public static Task ExecuteSqlBlockAsync(this IDataScope dataScope, CancellationToken token, Expression<SqlBlockDefinition> block, params Expression<Func<ISqlParamAdapter, ISqlParam>>[] parameters)
Parameters
Type | Name | Description |
---|---|---|
IDataScope | dataScope | Data scope |
CancellationToken | token | Cancellation token |
Expression<SqlBlockDefinition> | block | Sql block structure |
Expression<Func<ISqlParamAdapter, ISqlParam>>[] | parameters | Sql block parameters |
Returns
Type | Description |
---|---|
Task | Asynchronous wrapper over SQL block execution |
FillTableAsync(IDataScope, Query, CommandBehavior)
Asynchronous wrapper over FillTable(Query, CommandBehavior) call
Declaration
public static Task<DataTable> FillTableAsync(this IDataScope dataScope, Query query, CommandBehavior behavior = CommandBehavior.Default)
Parameters
Type | Name | Description |
---|---|---|
IDataScope | dataScope | Data scope |
Query | query | Query |
CommandBehavior | behavior | Command behavior |
Returns
Type | Description |
---|---|
Task<DataTable> | Asynchronous call over FillTable |
FirstAsync<T>(IQueryable<T>)
Asynchronous wrapper over First() LINQ function
Declaration
public static Task<T> FirstAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over First() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over First() LINQ function
Declaration
public static Task<T> FirstAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over First() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over First() LINQ function
Declaration
public static Task<T> FirstAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over First() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstAsync<T>(IDataQuery<T>)
Asynchronous wrapper over First() LINQ function
Declaration
public static Task<T> FirstAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over First() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstAsync<T>(IDataQuery<T>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over First() LINQ function
Declaration
public static Task<T> FirstAsync<T>(this IDataQuery<T> source, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over First() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over First() LINQ function
Declaration
public static Task<T> FirstAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over First() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over First() LINQ function
Declaration
public static Task<T> FirstAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over First() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstOrDefaultAsync<T>(IQueryable<T>)
Asynchronous wrapper over FirstOrDefault() LINQ function
Declaration
public static Task<T> FirstOrDefaultAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over FirstOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstOrDefaultAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over FirstOrDefault() LINQ function
Declaration
public static Task<T> FirstOrDefaultAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over FirstOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstOrDefaultAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over FirstOrDefault() LINQ function
Declaration
public static Task<T> FirstOrDefaultAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over FirstOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstOrDefaultAsync<T>(IDataQuery<T>)
Asynchronous wrapper over FirstOrDefault() LINQ function
Declaration
public static Task<T> FirstOrDefaultAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over FirstOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstOrDefaultAsync<T>(IDataQuery<T>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over FirstOrDefault() LINQ function
Declaration
public static Task<T> FirstOrDefaultAsync<T>(this IDataQuery<T> source, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over FirstOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstOrDefaultAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over FirstOrDefault() LINQ function
Declaration
public static Task<T> FirstOrDefaultAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over FirstOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
FirstOrDefaultAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over FirstOrDefault() LINQ function
Declaration
public static Task<T> FirstOrDefaultAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over FirstOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ForEachAsync<T>(IQueryable<T>, Action<T>)
Asynchronous wrapper over query result iteration
Declaration
public static Task ForEachAsync<T>(this IQueryable<T> source, Action<T> body)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Action<T> | body | Iteration logic |
Returns
Type | Description |
---|---|
Task | Asynchronous call over query result iteration |
Type Parameters
Name | Description |
---|---|
T | Object type |
ForEachAsync<T>(IQueryable<T>, Action<T>, CancellationToken)
Asynchronous wrapper over query result iteration
Declaration
public static Task ForEachAsync<T>(this IQueryable<T> source, Action<T> body, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Action<T> | body | Iteration logic |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task | Asynchronous call over query result iteration |
Type Parameters
Name | Description |
---|---|
T | Object type |
ForEachAsync<T>(IQueryable<T>, Func<T, Task>)
Asynchronous wrapper over query result iteration
Declaration
public static Task ForEachAsync<T>(this IQueryable<T> source, Func<T, Task> body)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Func<T, Task> | body | Iteration logic |
Returns
Type | Description |
---|---|
Task | Asynchronous call over query result iteration |
Type Parameters
Name | Description |
---|---|
T | Object type |
ForEachAsync<T>(IQueryable<T>, Func<T, Task>, CancellationToken)
Asynchronous wrapper over query result iteration
Declaration
public static Task ForEachAsync<T>(this IQueryable<T> source, Func<T, Task> body, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Func<T, Task> | body | Iteration logic |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task | Asynchronous call over query result iteration |
Type Parameters
Name | Description |
---|---|
T | Object type |
ForEachAsync<T>(IDataQuery<T>, Action<T>)
Asynchronous wrapper over query result iteration
Declaration
public static Task ForEachAsync<T>(this IDataQuery<T> source, Action<T> body)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Action<T> | body | Iteration logic |
Returns
Type | Description |
---|---|
Task | Asynchronous call over query result iteration |
Type Parameters
Name | Description |
---|---|
T | Object type |
ForEachAsync<T>(IDataQuery<T>, Func<T, Task>)
Asynchronous wrapper over query result iteration
Declaration
public static Task ForEachAsync<T>(this IDataQuery<T> source, Func<T, Task> body)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<T, Task> | body | Iteration logic |
Returns
Type | Description |
---|---|
Task | Asynchronous call over query result iteration |
Type Parameters
Name | Description |
---|---|
T | Object type |
GetParameterAsync<T>(IDataQuery, String)
Asynchronous wrapper over GetParameter
Declaration
public static Task<T> GetParameterAsync<T>(this IDataQuery source, string param)
where T : class
Parameters
Type | Name | Description |
---|---|---|
IDataQuery | source | SQL procedure based data source |
String | param | Parameter name |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
GetParameterAsync<T, TRet>(T, Expression<Func<T, TRet>>)
Asynchronous wrapper over GetParameter
Declaration
public static Task<TRet> GetParameterAsync<T, TRet>(this T obj, Expression<Func<T, TRet>> param)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | SQL procedure based single object result |
Expression<Func<T, TRet>> | param | Parameter name |
Returns
Type | Description |
---|---|
Task<TRet> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T | |
TRet |
GetParameterAsync<T, TRet>(T, String)
Asynchronous wrapper over GetParameter
Declaration
public static Task<TRet> GetParameterAsync<T, TRet>(this T obj, string param)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | SQL procedure based single object result |
String | param | Parameter name |
Returns
Type | Description |
---|---|
Task<TRet> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T | |
TRet |
GetParameterAsync<T, TRet>(IDataQuery<T>, Expression<Func<T, TRet>>)
Asynchronous wrapper over GetParameter
Declaration
public static Task<TRet> GetParameterAsync<T, TRet>(this IDataQuery<T> source, Expression<Func<T, TRet>> param)
where T : class, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | SQL procedure based data source |
Expression<Func<T, TRet>> | param | Parameter name |
Returns
Type | Description |
---|---|
Task<TRet> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T | |
TRet |
GetResultSetAsync<TRes>(IDataQuery, Expression<Func<IEnumerable<TRes>>>)
Asynchronous wrapper over GetResultSet
Declaration
public static Task<IEnumerable<TRes>> GetResultSetAsync<TRes>(this IDataQuery source, Expression<Func<IEnumerable<TRes>>> resultSetName)
where TRes : class, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery | source | SQL procedure based data source |
Expression<Func<IEnumerable<TRes>>> | resultSetName | Resultset name |
Returns
Type | Description |
---|---|
Task<IEnumerable<TRes>> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
TRes |
GetResultSetAsync<TRes>(IDataQuery, String)
Asynchronous wrapper over GetResultSet
Declaration
public static Task<IEnumerable<TRes>> GetResultSetAsync<TRes>(this IDataQuery source, string resultSetName)
where TRes : class, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery | source | SQL procedure based data source |
String | resultSetName | Resultset name |
Returns
Type | Description |
---|---|
Task<IEnumerable<TRes>> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
TRes |
GetResultSetAsync<T, TRes>(T, Expression<Func<T, IEnumerable<TRes>>>)
Asynchronous wrapper over GetResultSet
Declaration
public static Task<IEnumerable<TRes>> GetResultSetAsync<T, TRes>(this T obj, Expression<Func<T, IEnumerable<TRes>>> resultSetName)
where T : class, IDataObject, new()
where TRes : class
Parameters
Type | Name | Description |
---|---|---|
T | obj | SQL procedure based single object result |
Expression<Func<T, IEnumerable<TRes>>> | resultSetName | Resultset name |
Returns
Type | Description |
---|---|
Task<IEnumerable<TRes>> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T | |
TRes |
GetResultSetAsync<T, TRes>(IRepository<T>, Expression<Func<T, IEnumerable<TRes>>>)
Asynchronous wrapper over GetResultSet
Declaration
public static Task<IEnumerable<TRes>> GetResultSetAsync<T, TRes>(this IRepository<T> source, Expression<Func<T, IEnumerable<TRes>>> resultSetName)
where T : class, IDataObject, new()
where TRes : class
Parameters
Type | Name | Description |
---|---|---|
IRepository<T> | source | SQL procedure based data source |
Expression<Func<T, IEnumerable<TRes>>> | resultSetName | Resultset name |
Returns
Type | Description |
---|---|
Task<IEnumerable<TRes>> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T | |
TRes |
GetSqlBlockDataAsync<T>(IDataScope, Func<JsonSettings<T>, JsonSettings<T>>, Expression<SqlBlockDefinition<T>>, Expression<Func<ISqlParamAdapter, ISqlParam>>[])
Asynchronous wrapper over select SQL block data
Declaration
public static Task<T[]> GetSqlBlockDataAsync<T>(this IDataScope dataScope, Func<JsonSettings<T>, JsonSettings<T>> settings, Expression<SqlBlockDefinition<T>> block, params Expression<Func<ISqlParamAdapter, ISqlParam>>[] parameters)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataScope | dataScope | Data scope layer |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Expression<SqlBlockDefinition<T>> | block | Sql block structure |
Expression<Func<ISqlParamAdapter, ISqlParam>>[] | parameters | Sql block parameters |
Returns
Type | Description |
---|---|
Task<T[]> | Asynchronous wrapper over SQL block data selected and mapped |
Type Parameters
Name | Description |
---|---|
T |
GetSqlBlockDataAsync<T>(IDataScope, Expression<SqlBlockDefinition<T>>, Expression<Func<ISqlParamAdapter, ISqlParam>>[])
Asynchronous wrapper over select SQL block data
Declaration
public static Task<T[]> GetSqlBlockDataAsync<T>(this IDataScope dataScope, Expression<SqlBlockDefinition<T>> block, params Expression<Func<ISqlParamAdapter, ISqlParam>>[] parameters)
where T : class, new()
Parameters
Type | Name | Description |
---|---|---|
IDataScope | dataScope | Data scope layer |
Expression<SqlBlockDefinition<T>> | block | Sql block structure |
Expression<Func<ISqlParamAdapter, ISqlParam>>[] | parameters | Sql block parameters |
Returns
Type | Description |
---|---|
Task<T[]> | Asynchronous wrapper over SQL block data selected and mapped |
Type Parameters
Name | Description |
---|---|
T |
LastAsync<T>(IQueryable<T>)
Asynchronous wrapper over Last() LINQ function
Declaration
public static Task<T> LastAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Last() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over Last() LINQ function
Declaration
public static Task<T> LastAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Last() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over Last() LINQ function
Declaration
public static Task<T> LastAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Last() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastAsync<T>(IDataQuery<T>)
Asynchronous wrapper over Last() LINQ function
Declaration
public static Task<T> LastAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Last() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastAsync<T>(IDataQuery<T>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over Last() LINQ function
Declaration
public static Task<T> LastAsync<T>(this IDataQuery<T> source, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Last() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over Last() LINQ function
Declaration
public static Task<T> LastAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Last() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over Last() LINQ function
Declaration
public static Task<T> LastAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Last() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastOrDefaultAsync<T>(IQueryable<T>)
Asynchronous wrapper over LastOrDefault() LINQ function
Declaration
public static Task<T> LastOrDefaultAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over LastOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastOrDefaultAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over LastOrDefault() LINQ function
Declaration
public static Task<T> LastOrDefaultAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over LastOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastOrDefaultAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over LastOrDefault() LINQ function
Declaration
public static Task<T> LastOrDefaultAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over LastOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastOrDefaultAsync<T>(IDataQuery<T>)
Asynchronous wrapper over LastOrDefault() LINQ function
Declaration
public static Task<T> LastOrDefaultAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over LastOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastOrDefaultAsync<T>(IDataQuery<T>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over LastOrDefault() LINQ function
Declaration
public static Task<T> LastOrDefaultAsync<T>(this IDataQuery<T> source, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over LastOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastOrDefaultAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over LastOrDefault() LINQ function
Declaration
public static Task<T> LastOrDefaultAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over LastOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LastOrDefaultAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over LastOrDefault() LINQ function
Declaration
public static Task<T> LastOrDefaultAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over LastOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LoadLobAsync<T>(T)
Asynchronous wrapper over LoadLob
Declaration
public static Task<T> LoadLobAsync<T>(this T obj)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object to submit |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous wrapper over LoadLob |
Type Parameters
Name | Description |
---|---|
T |
LoadLobAsync<T>(T, Expression<Func<T, Object>>[])
Asynchronous wrapper over LoadLob
Declaration
public static Task<T> LoadLobAsync<T>(this T obj, params Expression<Func<T, object>>[] properties)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object to submit |
Expression<Func<T, Object>>[] | properties | Large data properties expressions to load |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous wrapper over LoadLob |
Type Parameters
Name | Description |
---|---|
T |
LoadLobAsync<T>(T, String[])
Asynchronous wrapper over LoadLob
Declaration
public static Task<T> LoadLobAsync<T>(this T obj, params string[] properties)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object to submit |
String[] | properties | Large data properties to load |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous wrapper over LoadLob |
Type Parameters
Name | Description |
---|---|
T |
LongCountAsync<T>(IQueryable<T>)
Asynchronous wrapper over LongCount() LINQ function
Declaration
public static Task<long> LongCountAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<Int64> | Asynchronous call over LongCount() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LongCountAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over LongCount() LINQ function
Declaration
public static Task<long> LongCountAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<Int64> | Asynchronous call over LongCount() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LongCountAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over LongCount() LINQ function
Declaration
public static Task<long> LongCountAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Int64> | Asynchronous call over LongCount() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LongCountAsync<T>(IDataQuery<T>)
Asynchronous wrapper over LongCount() LINQ function
Declaration
public static Task<long> LongCountAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<Int64> | Asynchronous call over LongCount() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
LongCountAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over LongCount() LINQ function
Declaration
public static Task<long> LongCountAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<Int64> | Asynchronous call over LongCount() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
MaxAsync<T, TResult>(IQueryable<T>, Expression<Func<T, TResult>>)
Asynchronous wrapper over Max() LINQ function
Declaration
public static Task<TResult> MaxAsync<T, TResult>(this IQueryable<T> source, Expression<Func<T, TResult>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, TResult>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<TResult> | Asynchronous call over Max() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TResult | Function applied field type |
MaxAsync<T, TResult>(IQueryable<T>, Expression<Func<T, TResult>>, CancellationToken)
Asynchronous wrapper over Max() LINQ function
Declaration
public static Task<TResult> MaxAsync<T, TResult>(this IQueryable<T> source, Expression<Func<T, TResult>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, TResult>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<TResult> | Asynchronous call over Max() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TResult | Function applied field type |
MaxAsync<T, TResult>(IDataQuery<T>, Expression<Func<T, TResult>>)
Asynchronous wrapper over Max() LINQ function
Declaration
public static Task<TResult> MaxAsync<T, TResult>(this IDataQuery<T> source, Expression<Func<T, TResult>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, TResult>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<TResult> | Asynchronous call over Max() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TResult | Function applied field type |
MinAsync<T, TResult>(IQueryable<T>, Expression<Func<T, TResult>>)
Asynchronous wrapper over Min() LINQ function
Declaration
public static Task<TResult> MinAsync<T, TResult>(this IQueryable<T> source, Expression<Func<T, TResult>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, TResult>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<TResult> | Asynchronous call over Min() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TResult | Function applied field type |
MinAsync<T, TResult>(IQueryable<T>, Expression<Func<T, TResult>>, CancellationToken)
Asynchronous wrapper over Min() LINQ function
Declaration
public static Task<TResult> MinAsync<T, TResult>(this IQueryable<T> source, Expression<Func<T, TResult>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, TResult>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<TResult> | Asynchronous call over Min() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TResult | Function applied field type |
MinAsync<T, TResult>(IDataQuery<T>, Expression<Func<T, TResult>>)
Asynchronous wrapper over Min() LINQ function
Declaration
public static Task<TResult> MinAsync<T, TResult>(this IDataQuery<T> source, Expression<Func<T, TResult>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, TResult>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<TResult> | Asynchronous call over Min() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TResult | Function applied field type |
SingleAsync<T>(IQueryable<T>)
Asynchronous wrapper over Single() LINQ function
Declaration
public static Task<T> SingleAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Single() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over Single() LINQ function
Declaration
public static Task<T> SingleAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Single() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over Single() LINQ function
Declaration
public static Task<T> SingleAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Single() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleAsync<T>(IDataQuery<T>)
Asynchronous wrapper over Single() LINQ function
Declaration
public static Task<T> SingleAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Single() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleAsync<T>(IDataQuery<T>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over Single() LINQ function
Declaration
public static Task<T> SingleAsync<T>(this IDataQuery<T> source, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Single() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over Single() LINQ function
Declaration
public static Task<T> SingleAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Single() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over Single() LINQ function
Declaration
public static Task<T> SingleAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over Single() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleOrDefaultAsync<T>(IQueryable<T>)
Asynchronous wrapper over SingleOrDefault() LINQ function
Declaration
public static Task<T> SingleOrDefaultAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over SingleOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleOrDefaultAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over SingleOrDefault() LINQ function
Declaration
public static Task<T> SingleOrDefaultAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over SingleOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleOrDefaultAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken)
Asynchronous wrapper over SingleOrDefault() LINQ function
Declaration
public static Task<T> SingleOrDefaultAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over SingleOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleOrDefaultAsync<T>(IDataQuery<T>)
Asynchronous wrapper over SingleOrDefault() LINQ function
Declaration
public static Task<T> SingleOrDefaultAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over SingleOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleOrDefaultAsync<T>(IDataQuery<T>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over SingleOrDefault() LINQ function
Declaration
public static Task<T> SingleOrDefaultAsync<T>(this IDataQuery<T> source, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over SingleOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleOrDefaultAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>)
Asynchronous wrapper over SingleOrDefault() LINQ function
Declaration
public static Task<T> SingleOrDefaultAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over SingleOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SingleOrDefaultAsync<T>(IDataQuery<T>, Expression<Func<T, Boolean>>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over SingleOrDefault() LINQ function
Declaration
public static Task<T> SingleOrDefaultAsync<T>(this IDataQuery<T> source, Expression<Func<T, bool>> predicate, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Boolean>> | predicate | A function to test each element for a condition |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous call over SingleOrDefault() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SubmitAndReturnAsync<T>(T, Func<JsonSettings<T>, JsonSettings<T>>, DataSubmitFlag)
Asynchronous wrapper over Submit
Declaration
public static Task<T> SubmitAndReturnAsync<T>(this T obj, Func<JsonSettings<T>, JsonSettings<T>> settings, DataSubmitFlag flag = DataSubmitFlag.None)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object to submit |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
DataSubmitFlag | flag | Data submit flag |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
SubmitAndReturnAsync<T>(T, DataSubmitFlag)
Asynchronous wrapper over Submit
Declaration
public static Task<T> SubmitAndReturnAsync<T>(this T obj, DataSubmitFlag flag = DataSubmitFlag.None)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object to submit |
DataSubmitFlag | flag | Data submit flag |
Returns
Type | Description |
---|---|
Task<T> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
SubmitAsync<T>(T, DataSubmitFlag)
Asynchronous wrapper over Submit
Declaration
public static Task<bool> SubmitAsync<T>(this T obj, DataSubmitFlag flag = DataSubmitFlag.None)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
T | obj | Data object to submit |
DataSubmitFlag | flag | Data submit flag |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
SubmitAsync<T>(IRepository<T>, IEnumerable<T>, DataSubmitFlag)
Asynchronous wrapper over Submit
Declaration
public static Task<bool> SubmitAsync<T>(this IRepository<T> source, IEnumerable<T> objects, DataSubmitFlag flag = DataSubmitFlag.None)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IRepository<T> | source | Repository to submit |
IEnumerable<T> | objects | Objects to submit |
DataSubmitFlag | flag | Data submit flag |
Returns
Type | Description |
---|---|
Task<Boolean> | Asynchronous wrapper over Submit |
Type Parameters
Name | Description |
---|---|
T |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Decimal>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<decimal> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, decimal>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Decimal>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Decimal> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Decimal>>, CancellationToken)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<decimal> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, decimal>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Decimal>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Decimal> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Double>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<double> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, double>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Double>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Double>>, CancellationToken)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<double> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, double>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Double>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Int32>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<int> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, int>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Int32>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Int32> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Int32>>, CancellationToken)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<int> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, int>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Int32>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Int32> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Int64>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<long> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, long>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Int64>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Int64> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Int64>>, CancellationToken)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<long> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, long>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Int64>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Int64> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Decimal>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<decimal?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, decimal?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Decimal>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Decimal>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Decimal>>>, CancellationToken)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<decimal?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, decimal?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Decimal>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Decimal>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Double>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<double?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, double?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Double>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Double>>>, CancellationToken)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<double?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, double?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Double>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Int32>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<int?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, int?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int32>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Int32>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Int32>>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<int?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, int?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int32>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Int32>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Int64>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<long?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, long?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int64>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Int64>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Int64>>>, CancellationToken)
Asynchronous wrapper over Average() LINQ function
Declaration
public static Task<long?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, long?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int64>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Int64>> | Asynchronous call over Average() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Single>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<float?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, float?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Single>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Single>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Single>>>, CancellationToken)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<float?> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, float?>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Nullable<Single>>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<Single>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Single>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<float> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, float>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Single>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Single> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IQueryable<T>, Expression<Func<T, Single>>, CancellationToken)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<float> SumAsync<T>(this IQueryable<T> source, Expression<Func<T, float>> selector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Expression<Func<T, Single>> | selector | A projection function to apply to each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Single> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Decimal>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<decimal> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, decimal>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Decimal>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Decimal> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Double>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<double> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, double>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Double>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Double> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Int32>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<int> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, int>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Int32>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Int32> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Int64>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<long> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, long>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Int64>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Int64> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Decimal>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<decimal?> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, decimal?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Decimal>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Decimal>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Double>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<double?> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, double?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Double>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Double>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Int32>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<int?> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, int?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int32>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Int32>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Int64>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<long?> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, long?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Int64>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Int64>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Nullable<Single>>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<float?> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, float?>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Nullable<Single>>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Nullable<Single>> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
SumAsync<T>(IDataQuery<T>, Expression<Func<T, Single>>)
Asynchronous wrapper over Sum() LINQ function
Declaration
public static Task<float> SumAsync<T>(this IDataQuery<T> source, Expression<Func<T, float>> selector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Expression<Func<T, Single>> | selector | A projection function to apply to each element |
Returns
Type | Description |
---|---|
Task<Single> | Asynchronous call over Sum() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ToArrayAsync<T>(IQueryable<T>)
Asynchronous wrapper over ToArray() LINQ function
Declaration
public static Task<T[]> ToArrayAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T[]> | Asynchronous call over ToArray() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ToArrayAsync<T>(IQueryable<T>, CancellationToken)
Asynchronous wrapper over ToArray() LINQ function
Declaration
public static Task<T[]> ToArrayAsync<T>(this IQueryable<T> source, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<T[]> | Asynchronous call over ToArray() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ToArrayAsync<T>(IDataQuery<T>)
Asynchronous wrapper over ToArray() LINQ function
Declaration
public static Task<T[]> ToArrayAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<T[]> | Asynchronous call over ToArray() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ToArrayAsync<T>(IDataQuery<T>, Func<JsonSettings<T>, JsonSettings<T>>)
Asynchronous wrapper over ToArray() LINQ function
Declaration
public static Task<T[]> ToArrayAsync<T>(this IDataQuery<T> source, Func<JsonSettings<T>, JsonSettings<T>> settings)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<JsonSettings<T>, JsonSettings<T>> | settings | JSON serialization settings |
Returns
Type | Description |
---|---|
Task<T[]> | Asynchronous call over ToArray() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ToDictionaryAsync<T, TKey, TValue>(IQueryable<T>, Func<T, TKey>, Func<T, TValue>)
Asynchronous wrapper over ToDictionary() LINQ function
Declaration
public static Task<Dictionary<TKey, TValue>> ToDictionaryAsync<T, TKey, TValue>(this IQueryable<T> source, Func<T, TKey> keySelector, Func<T, TValue> elementSelector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Func<T, TKey> | keySelector | Function to extract key from each element |
Func<T, TValue> | elementSelector | Function to extract value from each element |
Returns
Type | Description |
---|---|
Task<Dictionary<TKey, TValue>> | Asynchronous call over ToDictionary() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TKey | Dictionary key type |
TValue | Dictionary value type |
ToDictionaryAsync<T, TKey, TValue>(IQueryable<T>, Func<T, TKey>, Func<T, TValue>, CancellationToken)
Asynchronous wrapper over ToDictionary() LINQ function
Declaration
public static Task<Dictionary<TKey, TValue>> ToDictionaryAsync<T, TKey, TValue>(this IQueryable<T> source, Func<T, TKey> keySelector, Func<T, TValue> elementSelector, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Func<T, TKey> | keySelector | Function to extract key from each element |
Func<T, TValue> | elementSelector | Function to extract value from each element |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<Dictionary<TKey, TValue>> | Asynchronous call over ToDictionary() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TKey | Dictionary key type |
TValue | Dictionary value type |
ToDictionaryAsync<T, TKey, TValue>(IDataQuery<T>, Func<T, TKey>, Func<T, TValue>)
Asynchronous wrapper over ToDictionary() LINQ function
Declaration
public static Task<Dictionary<TKey, TValue>> ToDictionaryAsync<T, TKey, TValue>(this IDataQuery<T> source, Func<T, TKey> keySelector, Func<T, TValue> elementSelector)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Func<T, TKey> | keySelector | Function to extract key from each element |
Func<T, TValue> | elementSelector | Function to extract value from each element |
Returns
Type | Description |
---|---|
Task<Dictionary<TKey, TValue>> | Asynchronous call over ToDictionary() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
TKey | Dictionary key type |
TValue | Dictionary value type |
ToListAsync<T>(IQueryable<T>)
Asynchronous wrapper over ToList() LINQ function
Declaration
public static Task<List<T>> ToListAsync<T>(this IQueryable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<List<T>> | Asynchronous call over ToList() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ToListAsync<T>(IQueryable<T>, CancellationToken)
Asynchronous wrapper over ToList() LINQ function
Declaration
public static Task<List<T>> ToListAsync<T>(this IQueryable<T> source, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | Source object sequence |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<List<T>> | Asynchronous call over ToList() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |
ToListAsync<T>(IDataQuery<T>)
Asynchronous wrapper over ToList() LINQ function
Declaration
public static Task<List<T>> ToListAsync<T>(this IDataQuery<T> source)
Parameters
Type | Name | Description |
---|---|---|
IDataQuery<T> | source | Source object sequence |
Returns
Type | Description |
---|---|
Task<List<T>> | Asynchronous call over ToList() LINQ function |
Type Parameters
Name | Description |
---|---|
T | Object type |