ConflictOption 枚举

定义

指定将如何检测和解决对数据源的相互冲突的更改。Specifies how conflicting changes to the data source will be detected and resolved.

public enum class ConflictOption
public enum ConflictOption
type ConflictOption = 
Public Enum ConflictOption
继承
ConflictOption

字段

CompareAllSearchableValues 1

更新和删除语句将在 WHERE 子句中包含表中的所有可搜索列。Update and delete statements will include all searchable columns from the table in the WHERE clause. 这等效于指定 CompareAllValuesUpdate | CompareAllValuesDeleteThis is equivalent to specifying CompareAllValuesUpdate | CompareAllValuesDelete.

CompareRowVersion 2

如果表中存在任何 Timestamp 列,则这些列在 WHERE 子句中用于所有生成的更新语句。If any Timestamp columns exist in the table, they are used in the WHERE clause for all generated update statements. 这等效于指定 CompareRowVersionUpdate | CompareRowVersionDeleteThis is equivalent to specifying CompareRowVersionUpdate | CompareRowVersionDelete.

OverwriteChanges 3

所有的更新和删除语句仅在 WHERE 子句中包含 PrimaryKey 列。All update and delete statements include only PrimaryKey columns in the WHERE clause. 如果未定义 PrimaryKey,则所有可搜索的列都包含在 WHERE 子句中。If no PrimaryKey is defined, all searchable columns are included in the WHERE clause. 这等效于 OverwriteChangesUpdate | OverwriteChangesDeleteThis is equivalent to OverwriteChangesUpdate | OverwriteChangesDelete.

适用于