LinqToSql Plus Identity
InsertKeepIdentity
Gets or sets if the source identity value should be preserved on Insert
. When not specified, identity values are assigned by the destination.
context.BulkInsert(list ,options => options.InsertKeepIdentity = true);
MergeKeepIdentity
Gets or sets if the source identity value should be preserved on Merge
. When not specified, identity values are assigned by the destination.
context.BulkMerge(options => options.MergeKeepIdentity = true);
SynchronizeKeepIdentity
Gets or sets if the source identity value should be preserved on Synchronize
. When not specified, identity values are assigned by the destination.
context.BulkSynchronize(options => options.SynchronizeKeepIdentity = true);