Used for storing the result of a Save or Delete or other transactional operation within a BaseEntity

Constructors

Properties

EndedAt: Date

Timestamp when the operation ended

Error?: any

Optional, a structured error object with additional information

Errors?: any[]

Optional, a list of structured error objects with additional information

Message: string

A message for an end user

NewValues: {
    FieldName: string;
    Value: any;
}[] = []

A copy of the values of the entity object AFTER the operation was performed

Type declaration

  • FieldName: string
  • Value: any
OriginalValues: {
    FieldName: string;
    Value: any;
}[] = []

A copy of the values of the entity object BEFORE the operation was performed

Type declaration

  • FieldName: string
  • Value: any
StartedAt: Date

Timestamp when the operation started

Success: boolean

True if successful, false otherwise

Type: "delete" | "create" | "update"

The type of operation that was performed

Accessors

  • get CompleteMessage(): string
  • Returns a complete message that includes the Message property (if present), the Error property (if present), and any Errors array items (if present).

    Returns string