LinqToSql Plus 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);


The SynchronizeKeepIdentity option let you keep the source identity value when synchronizing.

By example, when importing a file, you may want to keep the value specified.

Prime Library