Home VersionZeroReservedException Class
Post
Cancel

VersionZeroReservedException Class

Definition

Namespace: EntityDb.Common.Exceptions
Assembly: EntityDb.Common

The exception that is thrown when an actor passes an ITransaction to PutTransaction(ITransaction, CancellationToken) with on a ITransactionStep that implements IAppendCommandTransactionStep and the value of EntityVersionNumber is equal to 0.

1
public class VersionZeroReservedException : System.Exception

Inheritance: Object → Exception

Remarks

Version Zero is reserved for an entity that has not yet been created/persisted.

Methods

ThrowIfZero(VersionNumber) Throws a new VersionZeroReservedException if versionNumber is equal to zero.
This post is licensed under CC BY 4.0 by the author.