ImportStrategy
Namespace: Meshmakers.Octo.Runtime.Contracts.Exchange
Defines the import strategy
public enum ImportStrategy
Inheritance Object → ValueType → Enum → ImportStrategy
Implements IComparable, ISpanFormattable, IFormattable, IConvertible
Fields
| Name | Value | Description |
|---|---|---|
| Insert | 0 | Inserts only data to repository, if an entity or association with the same ID already exists, an error is thrown. In the MongoDB implementation an entity that exists only as an ARCHIVED document (the default delete archives, it does not erase) does not count as existing: it is replaced by the imported entity, which is active again. An active entity with the same ID still fails, and the message names its state. Values of a plain Unique CK index stay blocked by archived entities (use UniqueNotDeleted for business keys); the message says so. |
| Upsert | 1 | Inserts or updates a repository |