Index > ExpressionPowerTools.Serialization.EFCore.Http > ExpressionPowerTools.Serialization.EFCore.Http.Queryable > DbClientContext > Query
Creates a trackable query based on the DbContext reference.
| Overload | Description |
|---|---|
| Queryable<T> Query<T>(Expression<Func<TContext, DbSet<T>>> template) | Creates a trackable query based on the DbContext reference. |
Creates a trackable query based on the DbContext reference.
public static IQueryable<T> Query<T>(Expression<Func<TContext, DbSet<T>>> template)IQueryable<T> - A new IQueryable to usee.
| Parameter | Type | Description |
|---|---|---|
template |
Expression<Func<TContext, DbSet<T>>> | A template to access the property. |
| Exception | Description |
|---|---|
| ArgumentNullException | Thrown when template is null. |
| ArgumentException | Thrown when template does not refer to the right context. |
| Generated | Copyright | Version |
|---|---|---|
| 02/22/2021 21:59:57 | (c) Copyright 2020 Jeremy Likness. | 0.9.7-beta |