Method CreateQuery
| Improve this Doc View SourceCreateQuery<T>(Action<DbQueryBuilder, T>)
Creates database query.
Declaration
public DbQuery<T> CreateQuery<T>(Action<DbQueryBuilder, T> buildQuery)
where T : class, IEntity, new()
Parameters
Type | Name | Description |
---|---|---|
System.Action<DbQueryBuilder, T> | buildQuery | The query builder. |
Returns
Type | Description |
---|---|
DbQuery<T> | The created database query. |
Type Parameters
Name | Description |
---|---|
T | Type of the entity. |
CreateQuery<T>(T, Action<DbQueryBuilder, T>)
Creates database query for specified entity.
Declaration
public DbQuery<T> CreateQuery<T>(T _, Action<DbQueryBuilder, T> buildQuery)
where T : class, IEntity, new()
Parameters
Type | Name | Description |
---|---|---|
T | _ | The specified entity. |
System.Action<DbQueryBuilder, T> | buildQuery | The query builder. |
Returns
Type | Description |
---|---|
DbQuery<T> | The created database query. |
Type Parameters
Name | Description |
---|---|
T | Type of the entity. |
CreateQuery<T>(Action<T>, Action<DbQueryBuilder, T>)
Creates database query.
Declaration
public DbQuery<T> CreateQuery<T>(Action<T> initializer, Action<DbQueryBuilder, T> buildQuery)
where T : class, IEntity, new()
Parameters
Type | Name | Description |
---|---|---|
System.Action<T> | initializer | The entity initializer. |
System.Action<DbQueryBuilder, T> | buildQuery | The query builder. |
Returns
Type | Description |
---|---|
DbQuery<T> | The created database query. |
Type Parameters
Name | Description |
---|---|
T | Type of the entity. |
CreateQuery<T>(T, Action<T>, Action<DbQueryBuilder, T>)
Creates database query for specified entity.
Declaration
public DbQuery<T> CreateQuery<T>(T _, Action<T> initializer, Action<DbQueryBuilder, T> buildQuery)
where T : class, IEntity, new()
Parameters
Type | Name | Description |
---|---|---|
T | _ | The specified entity. |
System.Action<T> | initializer | The entity initializer. |
System.Action<DbQueryBuilder, T> | buildQuery | The query builder. |
Returns
Type | Description |
---|---|
DbQuery<T> | The created database query. |
Type Parameters
Name | Description |
---|---|
T | Type of the entity. |