-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathCompoundTripleKeyRepositoryQueryContext.cs
More file actions
31 lines (28 loc) · 1.42 KB
/
Copy pathCompoundTripleKeyRepositoryQueryContext.cs
File metadata and controls
31 lines (28 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Linq.Expressions;
using SharpRepository.Repository.Queries;
using SharpRepository.Repository.Specifications;
namespace SharpRepository.Repository.Aspects
{
public abstract class CompoundTripleKeyRepositoryQueryContext<T, TKey, TKey2, TKey3> : CompoundTripleKeyRepositoryQueryContext<T, TKey, TKey2, TKey3, T> where T : class
{
protected CompoundTripleKeyRepositoryQueryContext(ICompoundKeyRepository<T, TKey, TKey2, TKey3> repository, ISpecification<T> specification, IQueryOptions<T> queryOptions)
: base(repository, specification, queryOptions)
{
}
}
public abstract class CompoundTripleKeyRepositoryQueryContext<T, TKey, TKey2, TKey3, TResult> : RepositoryActionContext<T, TKey, TKey2, TKey3> where T : class
{
protected CompoundTripleKeyRepositoryQueryContext(ICompoundKeyRepository<T, TKey, TKey2, TKey3> repository, ISpecification<T> specification, IQueryOptions<T> queryOptions, Expression<Func<T, TResult>> selector = null)
: base(repository)
{
Specification = specification;
QueryOptions = queryOptions;
Selector = selector;
}
public ISpecification<T> Specification { get; set; }
public IQueryOptions<T> QueryOptions { get; set; }
public virtual int NumberOfResults { get; internal set; }
public Expression<Func<T, TResult>> Selector { get; set; }
}
}