Table of Contents

Enum SyncMode

Namespace
CL.MySQL2.Models
Assembly
CL.MySQL2.dll

Operator-facing schema sync mode. This is the primary knob exposed in configuration; it maps onto an internal SchemaSyncLevel and governs how the CRC-gated __schema_state sentinel reconciles the database with the entity models.

public enum SyncMode

Fields

Developer = 0

Rolling-update development mode. Reconciles aggressively on every boot, dropping removed columns/indexes/FKs without asking (maps to Full). Unchanged models are still skipped via their stored CRC.

Migration = 2

Deliberate one-shot destructive reconcile (maps to Full, with a schema backup taken first). Idempotent: once every model matches its stored CRC and no drift is pending, the pass does nothing and logs a warning to switch back to Production.

Production = 1

Default. Safe/additive only — adds and modifies columns/indexes/FKs but never drops (maps to Safe). When a model change would require a drop, the change is deferred and the table is flagged DriftPending for a later Migration pass.