Table of Contents

Enum SaveMode

Namespace
GroupeIsa.Neos.Domain.Persistence
Assembly
GroupeIsa.Neos.Domain.Abstractions.dll

Defines the save operation mode.

public enum SaveMode

Fields

Default = 0

Default save mode: normal save operation with Result return type. Database errors throw exceptions.

NeverThrow = 2

Save mode that catches all exceptions and returns them as failed Results. No exceptions are thrown.

Simulate = 4

Simulation 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 = 1

Save mode that throws an exception on error instead of returning a failed Result.

ValidateOnly = 3

Validation only mode: executes Saving and ValidationRules only, without persisting to database.