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

Package: Korzh.EasyQuery.Linq (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.Linq.dll

Constructors

| Name | Type | Description | | --- | --- | --- | | EasyQueryManagerLinq() | void | Initializes a new instance of the Korzh.EasyQuery.Services.EasyQueryManagerLinq1](api-reference/korzh-easyquery-linq/korzh-easyquery-services-namespace/easyquerymanagerlinq-t--class) class. | | EasyQueryManagerLinq([EasyQueryOptions](api-reference/korzh-easyquery/korzh-easyquery-services-namespace/easyqueryoptions-class) options) |void| Initializes a new instance of the [Korzh.EasyQuery.Services.EasyQueryManagerLinq1 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() | Task<IEqResultSet> | The actual implemenation of [Korzh.EasyQuery.Services.EasyQueryManagerLinq1.GetResultSetAsync(System.Object,Korzh.EasyQuery.Services.ResultSetOptions)](api-reference/korzh-easyquery-linq/korzh-easyquery-services-namespace/easyquerymanagerlinq-t--class) function. This method generates a LINQ query and executes over the context returned by the context resolver | | GetResultSetAsync(objectcontext, [ResultSetOptions](api-reference/korzh-easyquery/korzh-easyquery-services-namespace/resultsetoptions-class) options = <span style='color: blue'>null</span>) |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. |