Method CreateChildAsync
| Improve this Doc View SourceCreateChildAsync<TChild>(Func<T, TChild>)
Creates child tempoary table.
Declaration
public Task<DbTable<TChild>> CreateChildAsync<TChild>(Func<T, TChild> getChildModel)
where TChild : Model, new()
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<T, TChild> | getChildModel | Delete to get child model. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DbTable<TChild>> | The child temporary table. |
Type Parameters
| Name | Description |
|---|---|
| TChild | Child model type. |
CreateChildAsync<TChild>(Action<TChild>, Func<T, TChild>)
Creates child tempoary table.
Declaration
public Task<DbTable<TChild>> CreateChildAsync<TChild>(Action<TChild> initializer, Func<T, TChild> getChildModel)
where TChild : Model, new()
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<TChild> | initializer | The child model initializer. |
| System.Func<T, TChild> | getChildModel | Delete to get child model. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DbTable<TChild>> | The child temporary table. |
Type Parameters
| Name | Description |
|---|---|
| TChild | Child model type. |
CreateChildAsync<TChild>(Action<TChild>, Func<T, TChild>, CancellationToken)
Creates child tempoary table.
Declaration
public Task<DbTable<TChild>> CreateChildAsync<TChild>(Action<TChild> initializer, Func<T, TChild> getChildModel, CancellationToken cancellationToken)
where TChild : Model, new()
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<TChild> | initializer | The child model initializer. |
| System.Func<T, TChild> | getChildModel | Delete to get child model. |
| System.Threading.CancellationToken | cancellationToken | The async cancellation token. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DbTable<TChild>> | The child temporary table. |
Type Parameters
| Name | Description |
|---|---|
| TChild | Child model type. |