Method FillChildAsync
| Improve this Doc View SourceFillChildAsync<TChild>(Int32, Func<T, TChild>, DbSet<TChild>, Action<TChild>, CancellationToken)
Fills child DataSet from source DbSet.
Declaration
public Task<DataSet<TChild>> FillChildAsync<TChild>(int dataRowOrdinal, Func<T, TChild> getChildModel, DbSet<TChild> sourceData, Action<TChild> initializer, CancellationToken cancellationToken)
where TChild : Model, new()
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | dataRowOrdinal | The ordinal of parent DataRow. |
System.Func<T, TChild> | getChildModel | The delegate to return child model. |
DbSet<TChild> | sourceData | The source Data. |
System.Action<TChild> | initializer | The initializer. |
System.Threading.CancellationToken | cancellationToken | Async operation cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DataSet<TChild>> | The child DataSet. |
Type Parameters
Name | Description |
---|---|
TChild | Model type of child DataSet. |
FillChildAsync<TChild>(Int32, Func<T, TChild>, DbSet<TChild>, Action<TChild>)
Fills child DataSet from source DbSet.
Declaration
public Task<DataSet<TChild>> FillChildAsync<TChild>(int dataRowOrdinal, Func<T, TChild> getChildModel, DbSet<TChild> sourceData, Action<TChild> initializer = null)
where TChild : Model, new()
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | dataRowOrdinal | The ordinal of parent DataRow. |
System.Func<T, TChild> | getChildModel | The delegate to return child model. |
DbSet<TChild> | sourceData | The source Data. |
System.Action<TChild> | initializer | The initializer. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DataSet<TChild>> | The child DataSet. |
Type Parameters
Name | Description |
---|---|
TChild | Model type of child DataSet. |
FillChildAsync<TChild>(Int32, Func<T, TChild>, DbSet<TChild>, CancellationToken)
Fills child DataSet from source DbSet.
Declaration
public Task<DataSet<TChild>> FillChildAsync<TChild>(int dataRowOrdinal, Func<T, TChild> getChildModel, DbSet<TChild> sourceData, CancellationToken cancellationToken)
where TChild : Model, new()
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | dataRowOrdinal | The ordinal of parent DataRow. |
System.Func<T, TChild> | getChildModel | The delegate to return child model. |
DbSet<TChild> | sourceData | The source Data. |
System.Threading.CancellationToken | cancellationToken | Async operation cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DataSet<TChild>> | The child DataSet. |
Type Parameters
Name | Description |
---|---|
TChild | Model type of child DataSet. |