Class CdcDataChange
Represents a change to a specific column in a database row, capturing the old and new values.
public sealed class CdcDataChange
- Inheritance
-
CdcDataChange
- Inherited Members
Remarks
This is the core abstraction for CDC data changes that is independent of database provider. Provider-specific types may extend this with additional metadata.
Properties
ColumnName
Gets or sets the name of the column where the change occurred.
public string ColumnName { get; init; }
Property Value
- string
The column name.
DataType
Gets or sets the data type of the column.
public Type? DataType { get; init; }
Property Value
- Type
The .NET type of the column.
NewValue
Gets or sets the value of the column after the change occurred.
public object? NewValue { get; init; }
Property Value
OldValue
Gets or sets the value of the column before the change occurred.
public object? OldValue { get; init; }
Property Value
Methods
ToString()
Returns a string representation of the data change.
public override string ToString()
Returns
- string
A string showing the column name and value transition.