MssqlSoftDelete class

How a table records a soft delete.

A soft delete is not a SQL Server feature; it is a convention about a column, so it takes declaring.

Annotations
  • @immutable

Constructors

MssqlSoftDelete({required String column, Object? aliveValue, Object? deletedValue})
const

Properties

alive MssqlCondition
Rows still alive.
no setter
aliveValue Object?
What identifies a live row.
final
column String
The column that is null while the row is live.
final
deleted MssqlCondition
Rows deleted.
no setter
deletedValue Object?
What to write when deleting.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

conditionFor(MssqlTrashed trashed) MssqlCondition?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited