Appearance
Query Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
QueryBuilder<T> Query() | Creates a query builder for the specified entity type. |
QueryBuilder<T> Query(Expression<Func<T, bool>> filter) | Creates a query builder for the specified entity type with an initial WHERE filter. |
QueryBuilder<T> Query()
csharp
QueryBuilder<T> Query()Creates a query builder for the specified entity type.
Type parameters
| Name | Description |
|---|---|
T | The entity (row) type. |
Returns
A new QueryBuilder`1 instance.
QueryBuilder<T> Query(Expression<Func<T, bool>> filter)
csharp
QueryBuilder<T> Query(Expression<Func<T, bool>> filter)Creates a query builder for the specified entity type with an initial WHERE filter.
Type parameters
| Name | Description |
|---|---|
T | The entity (row) type. |
Parameters
| Name | Description |
|---|---|
filter | Initial filter merged via AND; additional filters compose the same way as on an unfiltered builder. |
Returns
A new QueryBuilder`1 instance.
Remarks
Equivalent to Query<T>().Where(filter).