Class RepositoryWrapper<T>
Inheritance
System.Object
RepositoryWrapper<T>
Implements
IRepository<T, System.String>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Catalyst.Core.Lib.dll
Syntax
public class RepositoryWrapper<T> : IRepositoryWrapper<T>, IRepository<T, string> where T : class, IDocument
Type Parameters
Constructors
|
Improve this Doc
View Source
RepositoryWrapper(IRepository<T, String>)
Declaration
public RepositoryWrapper(IRepository<T, string> repository)
Parameters
Type |
Name |
Description |
IRepository<T, System.String> |
repository |
|
Fields
|
Improve this Doc
View Source
Repository
Declaration
protected readonly IRepository<T, string> Repository
Field Value
Type |
Description |
IRepository<T, System.String> |
|
Properties
|
Improve this Doc
View Source
CacheUsed
Declaration
public bool CacheUsed { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CachingEnabled
Declaration
public bool CachingEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CachingStrategy
Declaration
public ICachingStrategy<T, string> CachingStrategy { get; set; }
Property Value
Type |
Description |
ICachingStrategy<T, System.String> |
|
|
Improve this Doc
View Source
Conventions
Declaration
public IRepositoryConventions Conventions { get; set; }
Property Value
Type |
Description |
IRepositoryConventions |
|
|
Improve this Doc
View Source
EntityType
Declaration
public Type EntityType { get; }
Property Value
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
GenerateKeyOnAdd
Declaration
public bool GenerateKeyOnAdd { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
KeyType
Declaration
public Type KeyType { get; }
Property Value
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
TraceInfo
Declaration
public string TraceInfo { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
Add(T)
Declaration
public void Add(T entity)
Parameters
Type |
Name |
Description |
T |
entity |
|
|
Improve this Doc
View Source
Add(IEnumerable<T>)
Declaration
public void Add(IEnumerable<T> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
entities |
|
|
Improve this Doc
View Source
AsQueryable()
Declaration
public IQueryable<T> AsQueryable()
Returns
Type |
Description |
System.Linq.IQueryable<T> |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Decimal>>)
Declaration
public decimal Average(ISpecification<T> criteria, Expression<Func<T, decimal>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Decimal>> |
selector |
|
Returns
Type |
Description |
System.Decimal |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Double>>)
Declaration
public double Average(ISpecification<T> criteria, Expression<Func<T, double>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Double>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Int32>>)
Declaration
public double Average(ISpecification<T> criteria, Expression<Func<T, int>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Int32>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Int64>>)
Declaration
public double Average(ISpecification<T> criteria, Expression<Func<T, long>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Int64>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Nullable<Decimal>>>)
Declaration
public decimal? Average(ISpecification<T> criteria, Expression<Func<T, decimal? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Decimal>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Decimal> |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Nullable<Double>>>)
Declaration
public double? Average(ISpecification<T> criteria, Expression<Func<T, double? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Double>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Nullable<Int32>>>)
Declaration
public double? Average(ISpecification<T> criteria, Expression<Func<T, int? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int32>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Nullable<Int64>>>)
Declaration
public double? Average(ISpecification<T> criteria, Expression<Func<T, long? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int64>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Nullable<Single>>>)
Declaration
public float? Average(ISpecification<T> criteria, Expression<Func<T, float? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Single>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
Average(ISpecification<T>, Expression<Func<T, Single>>)
Declaration
public float Average(ISpecification<T> criteria, Expression<Func<T, float>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Single>> |
selector |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Decimal>>)
Declaration
public decimal Average(Expression<Func<T, bool>> predicate, Expression<Func<T, decimal>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Decimal>> |
selector |
|
Returns
Type |
Description |
System.Decimal |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Double>>)
Declaration
public double Average(Expression<Func<T, bool>> predicate, Expression<Func<T, double>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Double>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Int32>>)
Declaration
public double Average(Expression<Func<T, bool>> predicate, Expression<Func<T, int>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Int32>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Int64>>)
Declaration
public double Average(Expression<Func<T, bool>> predicate, Expression<Func<T, long>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Int64>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Decimal>>>)
Declaration
public decimal? Average(Expression<Func<T, bool>> predicate, Expression<Func<T, decimal? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Decimal>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Decimal> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Double>>>)
Declaration
public double? Average(Expression<Func<T, bool>> predicate, Expression<Func<T, double? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Double>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Int32>>>)
Declaration
public double? Average(Expression<Func<T, bool>> predicate, Expression<Func<T, int? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int32>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Int64>>>)
Declaration
public double? Average(Expression<Func<T, bool>> predicate, Expression<Func<T, long? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int64>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Single>>>)
Declaration
public float? Average(Expression<Func<T, bool>> predicate, Expression<Func<T, float? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Single>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Boolean>>, Expression<Func<T, Single>>)
Declaration
public float Average(Expression<Func<T, bool>> predicate, Expression<Func<T, float>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Single>> |
selector |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Decimal>>)
Declaration
public decimal Average(Expression<Func<T, decimal>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Decimal>> |
selector |
|
Returns
Type |
Description |
System.Decimal |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Double>>)
Declaration
public double Average(Expression<Func<T, double>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Double>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Int32>>)
Declaration
public double Average(Expression<Func<T, int>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Int32>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Int64>>)
Declaration
public double Average(Expression<Func<T, long>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Int64>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Nullable<Decimal>>>)
Declaration
public decimal? Average(Expression<Func<T, decimal? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Decimal>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Decimal> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Nullable<Double>>>)
Declaration
public double? Average(Expression<Func<T, double? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Double>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Nullable<Int32>>>)
Declaration
public double? Average(Expression<Func<T, int? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int32>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Nullable<Int64>>>)
Declaration
public double? Average(Expression<Func<T, long? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int64>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Nullable<Single>>>)
Declaration
public float? Average(Expression<Func<T, float? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Single>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
Average(Expression<Func<T, Single>>)
Declaration
public float Average(Expression<Func<T, float>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Single>> |
selector |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
BeginBatch()
Declaration
public IBatch<T> BeginBatch()
Returns
Type |
Description |
IBatch<T> |
|
|
Improve this Doc
View Source
ClearCache()
Declaration
|
Improve this Doc
View Source
Count()
Declaration
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Count(ISpecification<T>)
Declaration
public int Count(ISpecification<T> criteria)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Count(Expression<Func<T, Boolean>>)
Declaration
public int Count(Expression<Func<T, bool>> predicate)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Delete(T)
Declaration
public void Delete(T entity)
Parameters
Type |
Name |
Description |
T |
entity |
|
|
Improve this Doc
View Source
Delete(ISpecification<T>)
Declaration
public void Delete(ISpecification<T> criteria)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
|
Improve this Doc
View Source
Delete(IEnumerable<T>)
Declaration
public void Delete(IEnumerable<T> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
entities |
|
|
Improve this Doc
View Source
Delete(IEnumerable<String>)
Declaration
public void Delete(IEnumerable<string> keys)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
keys |
|
|
Improve this Doc
View Source
Delete(Expression<Func<T, Boolean>>)
Declaration
public void Delete(Expression<Func<T, bool>> predicate)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
|
Improve this Doc
View Source
Delete(String)
Declaration
public void Delete(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
|
Improve this Doc
View Source
Delete(String[])
Declaration
public void Delete(params string[] keys)
Parameters
Type |
Name |
Description |
System.String[] |
keys |
|
|
Improve this Doc
View Source
DisableCaching()
Declaration
public IDisabledCache DisableCaching()
Returns
Type |
Description |
IDisabledCache |
|
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Exists(ISpecification<T>)
Declaration
public bool Exists(ISpecification<T> criteria)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Exists(Expression<Func<T, Boolean>>)
Declaration
public bool Exists(Expression<Func<T, bool>> predicate)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Exists(String)
Declaration
public bool Exists(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Find(ISpecification<T>, IQueryOptions<T>)
Declaration
public T Find(ISpecification<T> criteria, IQueryOptions<T> queryOptions = null)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
IQueryOptions<T> |
queryOptions |
|
Returns
|
Improve this Doc
View Source
Find(Expression<Func<T, Boolean>>, IQueryOptions<T>)
Declaration
public T Find(Expression<Func<T, bool>> predicate, IQueryOptions<T> queryOptions = null)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
IQueryOptions<T> |
queryOptions |
|
Returns
|
Improve this Doc
View Source
Find<TResult>(ISpecification<T>, Expression<Func<T, TResult>>, IQueryOptions<T>)
Declaration
public TResult Find<TResult>(ISpecification<T> criteria, Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions = null)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Find<TResult>(Expression<Func<T, Boolean>>, Expression<Func<T, TResult>>, IQueryOptions<T>)
Declaration
public TResult Find<TResult>(Expression<Func<T, bool>> predicate, Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions = null)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
Returns
Type Parameters
|
Improve this Doc
View Source
FindAll(ISpecification<T>, IQueryOptions<T>)
Declaration
public IEnumerable<T> FindAll(ISpecification<T> criteria, IQueryOptions<T> queryOptions = null)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
IQueryOptions<T> |
queryOptions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
FindAll(Expression<Func<T, Boolean>>, IQueryOptions<T>)
Declaration
public IEnumerable<T> FindAll(Expression<Func<T, bool>> predicate, IQueryOptions<T> queryOptions = null)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
IQueryOptions<T> |
queryOptions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
FindAll<TResult>(ISpecification<T>, Expression<Func<T, TResult>>, IQueryOptions<T>)
Declaration
public IEnumerable<TResult> FindAll<TResult>(ISpecification<T> criteria, Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions = null)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
FindAll<TResult>(Expression<Func<T, Boolean>>, Expression<Func<T, TResult>>, IQueryOptions<T>)
Declaration
public IEnumerable<TResult> FindAll<TResult>(Expression<Func<T, bool>> predicate, Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions = null)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
Get(String)
Declaration
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
|
Improve this Doc
View Source
Get(String, IFetchStrategy<T>)
Declaration
public T Get(string key, IFetchStrategy<T> fetchStrategy)
Parameters
Type |
Name |
Description |
System.String |
key |
|
IFetchStrategy<T> |
fetchStrategy |
|
Returns
|
Improve this Doc
View Source
Get(String, Expression<Func<T, Object>>[])
Declaration
public T Get(string key, params Expression<Func<T, object>>[] includePaths)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>>[] |
includePaths |
|
Returns
|
Improve this Doc
View Source
Get(String, String[])
Declaration
public T Get(string key, params string[] includePaths)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String[] |
includePaths |
|
Returns
|
Improve this Doc
View Source
Get<TResult>(String, Expression<Func<T, TResult>>)
Declaration
public TResult Get<TResult>(string key, Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Get<TResult>(String, Expression<Func<T, TResult>>, IFetchStrategy<T>)
Declaration
public TResult Get<TResult>(string key, Expression<Func<T, TResult>> selector, IFetchStrategy<T> fetchStrategy)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IFetchStrategy<T> |
fetchStrategy |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Get<TResult>(String, Expression<Func<T, TResult>>, Expression<Func<T, Object>>[])
Declaration
public TResult Get<TResult>(string key, Expression<Func<T, TResult>> selector, params Expression<Func<T, object>>[] includePaths)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>>[] |
includePaths |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Get<TResult>(String, Expression<Func<T, TResult>>, String[])
Declaration
public TResult Get<TResult>(string key, Expression<Func<T, TResult>> selector, params string[] includePaths)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
System.String[] |
includePaths |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetAll()
Declaration
public IEnumerable<T> GetAll()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetAll(IFetchStrategy<T>)
Declaration
public IEnumerable<T> GetAll(IFetchStrategy<T> fetchStrategy)
Parameters
Type |
Name |
Description |
IFetchStrategy<T> |
fetchStrategy |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetAll(IQueryOptions<T>)
Declaration
public IEnumerable<T> GetAll(IQueryOptions<T> queryOptions)
Parameters
Type |
Name |
Description |
IQueryOptions<T> |
queryOptions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetAll(IQueryOptions<T>, IFetchStrategy<T>)
Declaration
public IEnumerable<T> GetAll(IQueryOptions<T> queryOptions, IFetchStrategy<T> fetchStrategy)
Parameters
Type |
Name |
Description |
IQueryOptions<T> |
queryOptions |
|
IFetchStrategy<T> |
fetchStrategy |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetAll(IQueryOptions<T>, Expression<Func<T, Object>>[])
Declaration
public IEnumerable<T> GetAll(IQueryOptions<T> queryOptions, params Expression<Func<T, object>>[] includePaths)
Parameters
Type |
Name |
Description |
IQueryOptions<T> |
queryOptions |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>>[] |
includePaths |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetAll(IQueryOptions<T>, String[])
Declaration
public IEnumerable<T> GetAll(IQueryOptions<T> queryOptions, params string[] includePaths)
Parameters
Type |
Name |
Description |
IQueryOptions<T> |
queryOptions |
|
System.String[] |
includePaths |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetAll(Expression<Func<T, Object>>[])
Declaration
public IEnumerable<T> GetAll(params Expression<Func<T, object>>[] includePaths)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Object>>[] |
includePaths |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetAll(String[])
Declaration
public IEnumerable<T> GetAll(params string[] includePaths)
Parameters
Type |
Name |
Description |
System.String[] |
includePaths |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetAll<TResult>(Expression<Func<T, TResult>>)
Declaration
public IEnumerable<TResult> GetAll<TResult>(Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetAll<TResult>(Expression<Func<T, TResult>>, IFetchStrategy<T>)
Declaration
public IEnumerable<TResult> GetAll<TResult>(Expression<Func<T, TResult>> selector, IFetchStrategy<T> fetchStrategy)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IFetchStrategy<T> |
fetchStrategy |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetAll<TResult>(Expression<Func<T, TResult>>, IQueryOptions<T>)
Declaration
public IEnumerable<TResult> GetAll<TResult>(Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetAll<TResult>(Expression<Func<T, TResult>>, IQueryOptions<T>, IFetchStrategy<T>)
Declaration
public IEnumerable<TResult> GetAll<TResult>(Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions, IFetchStrategy<T> fetchStrategy)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
IFetchStrategy<T> |
fetchStrategy |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetAll<TResult>(Expression<Func<T, TResult>>, IQueryOptions<T>, Expression<Func<T, Object>>[])
Declaration
public IEnumerable<TResult> GetAll<TResult>(Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions, params Expression<Func<T, object>>[] includePaths)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>>[] |
includePaths |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetAll<TResult>(Expression<Func<T, TResult>>, IQueryOptions<T>, String[])
Declaration
public IEnumerable<TResult> GetAll<TResult>(Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions, params string[] includePaths)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
System.String[] |
includePaths |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetAll<TResult>(Expression<Func<T, TResult>>, Expression<Func<T, Object>>[])
Declaration
public IEnumerable<TResult> GetAll<TResult>(Expression<Func<T, TResult>> selector, params Expression<Func<T, object>>[] includePaths)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>>[] |
includePaths |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetAll<TResult>(Expression<Func<T, TResult>>, String[])
Declaration
public IEnumerable<TResult> GetAll<TResult>(Expression<Func<T, TResult>> selector, params string[] includePaths)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
System.String[] |
includePaths |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetMany(IEnumerable<String>)
Declaration
public IEnumerable<T> GetMany(IEnumerable<string> keys)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetMany(IEnumerable<String>, IFetchStrategy<T>)
Declaration
public IEnumerable<T> GetMany(IEnumerable<string> keys, IFetchStrategy<T> fetchStrategy)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
keys |
|
IFetchStrategy<T> |
fetchStrategy |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetMany(String[])
Declaration
public IEnumerable<T> GetMany(params string[] keys)
Parameters
Type |
Name |
Description |
System.String[] |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
|
Improve this Doc
View Source
GetMany<TResult>(IEnumerable<String>, Expression<Func<T, TResult>>)
Declaration
public IEnumerable<TResult> GetMany<TResult>(IEnumerable<string> keys, Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
keys |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetMany<TResult>(Expression<Func<T, TResult>>, String[])
Declaration
public IEnumerable<TResult> GetMany<TResult>(Expression<Func<T, TResult>> selector, params string[] keys)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
System.String[] |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
|
Improve this Doc
View Source
GetManyAsDictionary(IEnumerable<String>)
Declaration
public IDictionary<string, T> GetManyAsDictionary(IEnumerable<string> keys)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<System.String, T> |
|
|
Improve this Doc
View Source
GetManyAsDictionary(IEnumerable<String>, IFetchStrategy<T>)
Declaration
public IDictionary<string, T> GetManyAsDictionary(IEnumerable<string> keys, IFetchStrategy<T> fetchStrategy)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
keys |
|
IFetchStrategy<T> |
fetchStrategy |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<System.String, T> |
|
|
Improve this Doc
View Source
GetManyAsDictionary(String[])
Declaration
public IDictionary<string, T> GetManyAsDictionary(params string[] keys)
Parameters
Type |
Name |
Description |
System.String[] |
keys |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<System.String, T> |
|
|
Improve this Doc
View Source
GetPrimaryKey(T)
Declaration
public string GetPrimaryKey(T entity)
Parameters
Type |
Name |
Description |
T |
entity |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GroupBy<TGroupKey, TResult>(ISpecification<T>, Expression<Func<T, TGroupKey>>, Expression<Func<IGrouping<TGroupKey, T>, TResult>>)
Declaration
public IEnumerable<TResult> GroupBy<TGroupKey, TResult>(ISpecification<T> criteria, Expression<Func<T, TGroupKey>> keySelector, Expression<Func<IGrouping<TGroupKey, T>, TResult>> resultSelector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
keySelector |
|
System.Linq.Expressions.Expression<System.Func<System.Linq.IGrouping<TGroupKey, T>, TResult>> |
resultSelector |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
TResult |
|
|
Improve this Doc
View Source
GroupBy<TGroupKey, TResult>(Expression<Func<T, TGroupKey>>, Expression<Func<IGrouping<TGroupKey, T>, TResult>>)
Declaration
public IEnumerable<TResult> GroupBy<TGroupKey, TResult>(Expression<Func<T, TGroupKey>> keySelector, Expression<Func<IGrouping<TGroupKey, T>, TResult>> resultSelector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
keySelector |
|
System.Linq.Expressions.Expression<System.Func<System.Linq.IGrouping<TGroupKey, T>, TResult>> |
resultSelector |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
TResult |
|
|
Improve this Doc
View Source
GroupBy<TGroupKey, TResult>(Expression<Func<T, Boolean>>, Expression<Func<T, TGroupKey>>, Expression<Func<IGrouping<TGroupKey, T>, TResult>>)
Declaration
public IEnumerable<TResult> GroupBy<TGroupKey, TResult>(Expression<Func<T, bool>> predicate, Expression<Func<T, TGroupKey>> keySelector, Expression<Func<IGrouping<TGroupKey, T>, TResult>> resultSelector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
keySelector |
|
System.Linq.Expressions.Expression<System.Func<System.Linq.IGrouping<TGroupKey, T>, TResult>> |
resultSelector |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TResult> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
TResult |
|
|
Improve this Doc
View Source
GroupCount<TGroupKey>(ISpecification<T>, Expression<Func<T, TGroupKey>>)
Declaration
public IDictionary<TGroupKey, int> GroupCount<TGroupKey>(ISpecification<T> criteria, Expression<Func<T, TGroupKey>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
selector |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<TGroupKey, System.Int32> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
|
Improve this Doc
View Source
GroupCount<TGroupKey>(Expression<Func<T, TGroupKey>>)
Declaration
public IDictionary<TGroupKey, int> GroupCount<TGroupKey>(Expression<Func<T, TGroupKey>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
selector |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<TGroupKey, System.Int32> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
|
Improve this Doc
View Source
GroupCount<TGroupKey>(Expression<Func<T, Boolean>>, Expression<Func<T, TGroupKey>>)
Declaration
public IDictionary<TGroupKey, int> GroupCount<TGroupKey>(Expression<Func<T, bool>> predicate, Expression<Func<T, TGroupKey>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
selector |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<TGroupKey, System.Int32> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
|
Improve this Doc
View Source
GroupLongCount<TGroupKey>(ISpecification<T>, Expression<Func<T, TGroupKey>>)
Declaration
public IDictionary<TGroupKey, long> GroupLongCount<TGroupKey>(ISpecification<T> criteria, Expression<Func<T, TGroupKey>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
selector |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<TGroupKey, System.Int64> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
|
Improve this Doc
View Source
GroupLongCount<TGroupKey>(Expression<Func<T, TGroupKey>>)
Declaration
public IDictionary<TGroupKey, long> GroupLongCount<TGroupKey>(Expression<Func<T, TGroupKey>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
selector |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<TGroupKey, System.Int64> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
|
Improve this Doc
View Source
GroupLongCount<TGroupKey>(Expression<Func<T, Boolean>>, Expression<Func<T, TGroupKey>>)
Declaration
public IDictionary<TGroupKey, long> GroupLongCount<TGroupKey>(Expression<Func<T, bool>> predicate, Expression<Func<T, TGroupKey>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TGroupKey>> |
selector |
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<TGroupKey, System.Int64> |
|
Type Parameters
Name |
Description |
TGroupKey |
|
|
Improve this Doc
View Source
Join<TJoinKey, TInner, TResult>(IRepositoryQueryable<TInner>, Expression<Func<T, TJoinKey>>, Expression<Func<TInner, TJoinKey>>, Expression<Func<T, TInner, TResult>>)
Declaration
public IRepositoryQueryable<TResult> Join<TJoinKey, TInner, TResult>(IRepositoryQueryable<TInner> innerRepository, Expression<Func<T, TJoinKey>> outerKeySelector, Expression<Func<TInner, TJoinKey>> innerKeySelector, Expression<Func<T, TInner, TResult>> resultSelector)
where TInner : class where TResult : class
Parameters
Type |
Name |
Description |
IRepositoryQueryable<TInner> |
innerRepository |
|
System.Linq.Expressions.Expression<System.Func<T, TJoinKey>> |
outerKeySelector |
|
System.Linq.Expressions.Expression<System.Func<TInner, TJoinKey>> |
innerKeySelector |
|
System.Linq.Expressions.Expression<System.Func<T, TInner, TResult>> |
resultSelector |
|
Returns
Type |
Description |
IRepositoryQueryable<TResult> |
|
Type Parameters
Name |
Description |
TJoinKey |
|
TInner |
|
TResult |
|
|
Improve this Doc
View Source
LongCount()
Declaration
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
LongCount(ISpecification<T>)
Declaration
public long LongCount(ISpecification<T> criteria)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
LongCount(Expression<Func<T, Boolean>>)
Declaration
public long LongCount(Expression<Func<T, bool>> predicate)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Max<TResult>(ISpecification<T>, Expression<Func<T, TResult>>)
Declaration
public TResult Max<TResult>(ISpecification<T> criteria, Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Max<TResult>(Expression<Func<T, TResult>>)
Declaration
public TResult Max<TResult>(Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Max<TResult>(Expression<Func<T, Boolean>>, Expression<Func<T, TResult>>)
Declaration
public TResult Max<TResult>(Expression<Func<T, bool>> predicate, Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Min<TResult>(ISpecification<T>, Expression<Func<T, TResult>>)
Declaration
public TResult Min<TResult>(ISpecification<T> criteria, Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Min<TResult>(Expression<Func<T, TResult>>)
Declaration
public TResult Min<TResult>(Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Min<TResult>(Expression<Func<T, Boolean>>, Expression<Func<T, TResult>>)
Declaration
public TResult Min<TResult>(Expression<Func<T, bool>> predicate, Expression<Func<T, TResult>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Decimal>>)
Declaration
public decimal Sum(ISpecification<T> criteria, Expression<Func<T, decimal>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Decimal>> |
selector |
|
Returns
Type |
Description |
System.Decimal |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Double>>)
Declaration
public double Sum(ISpecification<T> criteria, Expression<Func<T, double>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Double>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Int32>>)
Declaration
public int Sum(ISpecification<T> criteria, Expression<Func<T, int>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Int32>> |
selector |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Int64>>)
Declaration
public long Sum(ISpecification<T> criteria, Expression<Func<T, long>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Int64>> |
selector |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Nullable<Decimal>>>)
Declaration
public decimal? Sum(ISpecification<T> criteria, Expression<Func<T, decimal? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Decimal>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Decimal> |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Nullable<Double>>>)
Declaration
public double? Sum(ISpecification<T> criteria, Expression<Func<T, double? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Double>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Nullable<Int32>>>)
Declaration
public int? Sum(ISpecification<T> criteria, Expression<Func<T, int? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int32>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Nullable<Int64>>>)
Declaration
public long? Sum(ISpecification<T> criteria, Expression<Func<T, long? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int64>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Int64> |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Nullable<Single>>>)
Declaration
public float? Sum(ISpecification<T> criteria, Expression<Func<T, float? >> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Single>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
Sum(ISpecification<T>, Expression<Func<T, Single>>)
Declaration
public float Sum(ISpecification<T> criteria, Expression<Func<T, float>> selector)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, System.Single>> |
selector |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Decimal>>)
Declaration
public decimal Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, decimal>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Decimal>> |
selector |
|
Returns
Type |
Description |
System.Decimal |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Double>>)
Declaration
public double Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, double>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Double>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Int32>>)
Declaration
public int Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, int>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Int32>> |
selector |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Int64>>)
Declaration
public long Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, long>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Int64>> |
selector |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Decimal>>>)
Declaration
public decimal? Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, decimal? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Decimal>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Decimal> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Double>>>)
Declaration
public double? Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, double? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Double>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Int32>>>)
Declaration
public int? Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, int? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int32>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Int64>>>)
Declaration
public long? Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, long? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int64>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Int64> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Nullable<Single>>>)
Declaration
public float? Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, float? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Single>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Boolean>>, Expression<Func<T, Single>>)
Declaration
public float Sum(Expression<Func<T, bool>> predicate, Expression<Func<T, float>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, System.Single>> |
selector |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Decimal>>)
Declaration
public decimal Sum(Expression<Func<T, decimal>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Decimal>> |
selector |
|
Returns
Type |
Description |
System.Decimal |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Double>>)
Declaration
public double Sum(Expression<Func<T, double>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Double>> |
selector |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Int32>>)
Declaration
public int Sum(Expression<Func<T, int>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Int32>> |
selector |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Int64>>)
Declaration
public long Sum(Expression<Func<T, long>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Int64>> |
selector |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Nullable<Decimal>>>)
Declaration
public decimal? Sum(Expression<Func<T, decimal? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Decimal>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Decimal> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Nullable<Double>>>)
Declaration
public double? Sum(Expression<Func<T, double? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Double>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Nullable<Int32>>>)
Declaration
public int? Sum(Expression<Func<T, int? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int32>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Nullable<Int64>>>)
Declaration
public long? Sum(Expression<Func<T, long? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Int64>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Int64> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Nullable<Single>>>)
Declaration
public float? Sum(Expression<Func<T, float? >> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Nullable<System.Single>>> |
selector |
|
Returns
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
Sum(Expression<Func<T, Single>>)
Declaration
public float Sum(Expression<Func<T, float>> selector)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Single>> |
selector |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
TryFind(ISpecification<T>, out T)
Declaration
public bool TryFind(ISpecification<T> criteria, out T entity)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
T |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryFind(ISpecification<T>, IQueryOptions<T>, out T)
Declaration
public bool TryFind(ISpecification<T> criteria, IQueryOptions<T> queryOptions, out T entity)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
IQueryOptions<T> |
queryOptions |
|
T |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryFind(Expression<Func<T, Boolean>>, out T)
Declaration
public bool TryFind(Expression<Func<T, bool>> predicate, out T entity)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
T |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryFind(Expression<Func<T, Boolean>>, IQueryOptions<T>, out T)
Declaration
public bool TryFind(Expression<Func<T, bool>> predicate, IQueryOptions<T> queryOptions, out T entity)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
IQueryOptions<T> |
queryOptions |
|
T |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryFind<TResult>(ISpecification<T>, Expression<Func<T, TResult>>, out TResult)
Declaration
public bool TryFind<TResult>(ISpecification<T> criteria, Expression<Func<T, TResult>> selector, out TResult entity)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
TResult |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
TryFind<TResult>(ISpecification<T>, Expression<Func<T, TResult>>, IQueryOptions<T>, out TResult)
Declaration
public bool TryFind<TResult>(ISpecification<T> criteria, Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions, out TResult entity)
Parameters
Type |
Name |
Description |
ISpecification<T> |
criteria |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
TResult |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
TryFind<TResult>(Expression<Func<T, Boolean>>, Expression<Func<T, TResult>>, out TResult)
Declaration
public bool TryFind<TResult>(Expression<Func<T, bool>> predicate, Expression<Func<T, TResult>> selector, out TResult entity)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
TResult |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
TryFind<TResult>(Expression<Func<T, Boolean>>, Expression<Func<T, TResult>>, IQueryOptions<T>, out TResult)
Declaration
public bool TryFind<TResult>(Expression<Func<T, bool>> predicate, Expression<Func<T, TResult>> selector, IQueryOptions<T> queryOptions, out TResult entity)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> |
predicate |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
IQueryOptions<T> |
queryOptions |
|
TResult |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
TryGet(String, out T)
Declaration
public bool TryGet(string key, out T entity)
Parameters
Type |
Name |
Description |
System.String |
key |
|
T |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGet<TResult>(String, Expression<Func<T, TResult>>, out TResult)
Declaration
public bool TryGet<TResult>(string key, Expression<Func<T, TResult>> selector, out TResult entity)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Linq.Expressions.Expression<System.Func<T, TResult>> |
selector |
|
TResult |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
Update(T)
Declaration
public void Update(T entity)
Parameters
Type |
Name |
Description |
T |
entity |
|
|
Improve this Doc
View Source
Update(IEnumerable<T>)
Declaration
public void Update(IEnumerable<T> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
entities |
|
Implements
IRepository<, >