Method InsertAsync
|
Improve this Doc
View Source
InsertAsync<TSource, TTarget>(DataSet<TSource>, DbTable<TTarget>, Action<ColumnMapper, TSource, TTarget>, Boolean, CancellationToken)
Declaration
protected override sealed Task<int> InsertAsync<TSource, TTarget>(DataSet<TSource> source, DbTable<TTarget> target, Action<ColumnMapper, TSource, TTarget> columnMapper, bool updateIdentity, CancellationToken ct)
where TSource : class, IEntity, new()
where TTarget : class, IEntity, new()
Parameters
Type |
Name |
Description |
DataSet<TSource> |
source |
|
DbTable<TTarget> |
target |
|
System.Action<ColumnMapper, TSource, TTarget> |
columnMapper |
|
System.Boolean |
updateIdentity |
|
System.Threading.CancellationToken |
ct |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
Type Parameters
Name |
Description |
TSource |
|
TTarget |
|
Overrides
DevZest.Data.Primitives.DbSession.InsertAsync<TSource, TTarget>(DevZest.Data.DataSet<TSource>, DevZest.Data.DbTable<TTarget>, System.Action<DevZest.Data.ColumnMapper, TSource, TTarget>, System.Boolean, System.Threading.CancellationToken)