Show / Hide Table of Contents

Method CreateChildAsync

| Improve this Doc View Source

CreateChildAsync<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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest