Method GetChild
| Improve this Doc View SourceGetChild<TChild>(Func<T, TChild>)
Gets child query.
Declaration
public DbQuery<TChild> GetChild<TChild>(Func<T, TChild> getChildModel)
where TChild : Model, new()
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<T, TChild> | getChildModel | The delegate to get child model. |
Returns
| Type | Description |
|---|---|
| DbQuery<TChild> | The child query, null if not existed. |
Type Parameters
| Name | Description |
|---|---|
| TChild | Type of child model. |