Table of Contents

Enum ConflictAction

Namespace
LinqToDB.Data
Assembly
linq2db.dll

Defines the action to take when conflicts occur during bulk copy operations.

public enum ConflictAction
Extension Methods

Fields

Default = 0

Default behavior - conflicts will be handled according to the database's normal behavior (typically will fail).

Ignore = 1

Ignore conflicts during bulk copy operation. Supported for following databases:

  • MySql/MariaDB - uses INSERT IGNORE INTO statement (only works with MultipleRows)
  • PostgreSQL - adds ON CONFLICT DO NOTHING clause to INSERT INTO statement (only works with MultipleRows)
  • SQLite - uses INSERT OR IGNORE INTO statement (only works with MultipleRows)