Class QueryFactory
A factory to create new instances of ResultQuery<TQueryStrategy, TData>.
Inheritance
System.Object
QueryFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Repositories.Queries
Assembly: Cqrs.dll
Syntax
public class QueryFactory : IQueryFactory
Constructors
QueryFactory(IDependencyResolver)
Instantiates a new instance of QueryFactory
Declaration
public QueryFactory(IDependencyResolver dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
IDependencyResolver | dependencyResolver |
Properties
DependencyResolver
Gets or sets the IDependencyResolver.
Declaration
protected IDependencyResolver DependencyResolver { get; }
Property Value
Type | Description |
---|---|
IDependencyResolver |
Methods
CreateNewCollectionResultQuery<TUserQueryStrategy, TData>()
Creates a new ICollectionResultQuery<TQueryStrategy, TData>
using DependencyResolver to create a new TUserQueryStrategy
.
Declaration
public ICollectionResultQuery<TUserQueryStrategy, TData> CreateNewCollectionResultQuery<TUserQueryStrategy, TData>()where TUserQueryStrategy : IQueryStrategy
Returns
Type | Description |
---|---|
ICollectionResultQuery<TUserQueryStrategy, TData> |
Type Parameters
Name | Description |
---|---|
TUserQueryStrategy | The System.Type of IQueryStrategy it will use. |
TData | The System.Type of data the ISingleResultQuery<TQueryStrategy, TData> will operate on. |
Implements
CreateNewSingleResultQuery<TUserQueryStrategy, TData>()
Creates a new ISingleResultQuery<TQueryStrategy, TData>
using DependencyResolver to create a new TUserQueryStrategy
.
Declaration
public ISingleResultQuery<TUserQueryStrategy, TData> CreateNewSingleResultQuery<TUserQueryStrategy, TData>()where TUserQueryStrategy : IQueryStrategy
Returns
Type | Description |
---|---|
ISingleResultQuery<TUserQueryStrategy, TData> |
Type Parameters
Name | Description |
---|---|
TUserQueryStrategy | The System.Type of IQueryStrategy it will use. |
TData | The System.Type of data the ISingleResultQuery<TQueryStrategy, TData> will operate on. |