Enum SaveMode
- Namespace
- GroupeIsa.Neos.Domain.Persistence
- Assembly
- GroupeIsa.Neos.Domain.Abstractions.dll
Defines the save operation mode.
public enum SaveMode
Fields
Default = 0Default save mode: normal save operation with Result return type. Database errors throw exceptions.
NeverThrow = 2Save mode that catches all exceptions and returns them as failed Results. No exceptions are thrown.
Simulate = 4Simulation mode: executes Saving, ValidationRules, and database save within an automatically rolled back transaction. Saved rules are not executed. Useful for validating business rules and database constraints without modifying data.
ThrowOnError = 1Save mode that throws an exception on error instead of returning a failed Result.
ValidateOnly = 3Validation only mode: executes Saving and ValidationRules only, without persisting to database.