easyquerymanagerlinq-t--class
Represents an implementation of Korzh.EasyQuery.Services.EasyQueryManager which loads the model from some type and generates LINQ queries.
public class Korzh.EasyQuery.Services.EasyQueryManagerLinq<T>
: EasyQueryManager
Assembly: Korzh.EasyQuery.Linq.dll
Constructors
Name | Type | Description |
---|---|---|
EasyQueryManagerLinq() | void | Initializes a new instance of the Korzh.EasyQuery.Services.EasyQueryManagerLinq`1 class. |
EasyQueryManagerLinq(EasyQueryOptions options) | void | Initializes a new instance of the Korzh.EasyQuery.Services.EasyQueryManagerLinq`1 class. |
EasyQueryManagerLinq(EasyQueryOptions options, IServiceProvider services) | void | Initializes a new instance of the Korzh.EasyQuery.Services.EasyQueryManagerLinq`1 class. |
Properties
Name | Type | Description |
---|---|---|
ContextResolver | Func <string , object > | Gets or sets the context resolver - a function which returns some context object by the model ID. |
QueryBuilder | LinqQueryBuilder | Returns QueryBuilder associated with current Query |
Methods
Name | Type | Description |
---|---|---|
CreateQueryBuilderCore() | IQueryBuilder | Returns the query builder. In this particular kind of EasyQueryManager it will be an instance of LinqQueryBuilder. |
CreateResultSet(ResultSetOptions options = null) | EasyObjectResultSet | Creates result set based on format |
DynamicQuery(IQueryable <TEntity > source, string orderByProperty = null, bool descending = False) | IQueryable <TEntity > | |
FetchDataCoreAsync(CancellationToken ct) | Task <IEqResultSet> | The actual implemenation of Korzh.EasyQuery.Services.EasyQueryManagerLinq`1.GetResultSetAsync(System.Object,Korzh.EasyQuery.Services.ResultSetOptions,System.Threading.CancellationToken) function. This method generates a LINQ query and executes over the context returned by the context resolver |
GetResultSetAsync(object context, ResultSetOptions options = null, `CancellationToken` ct = null) | Task <IEqResultSet> | Gets the result set by the query and some context (e.g. DbContext) object. This method generates LINQ query, executes it over specified context and returns the result as DataSet. |