Skip to main content

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

NameTypeDescription
EasyQueryManagerLinq()voidInitializes a new instance of the Korzh.EasyQuery.Services.EasyQueryManagerLinq`1 class.
EasyQueryManagerLinq(EasyQueryOptions options)voidInitializes a new instance of the Korzh.EasyQuery.Services.EasyQueryManagerLinq`1 class.
EasyQueryManagerLinq(EasyQueryOptions options, IServiceProvider services)voidInitializes a new instance of the Korzh.EasyQuery.Services.EasyQueryManagerLinq`1 class.

Properties

NameTypeDescription
ContextResolverFunc<string, object>Gets or sets the context resolver - a function which returns some context object by the model ID.
QueryBuilderLinqQueryBuilderReturns QueryBuilder associated with current Query

Methods

NameTypeDescription
CreateQueryBuilderCore()IQueryBuilderReturns the query builder. In this particular kind of EasyQueryManager it will be an instance of LinqQueryBuilder.
CreateResultSet(ResultSetOptions options = null)EasyObjectResultSetCreates 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.