Class ChangeTrackingSchema.ChangeTrackingTable
- Namespace
- LinqToDB.Tools.DataProvider.SqlServer.Schemas
- Assembly
- linq2db.Tools.dll
Change Tracking Catalog Views - sys.change_tracking_tables
Applies to: √ SQL Server (all supported versions) √ Azure SQL Database
Returns one row for each table in the current database that has change tracking enabled.
[Table(Schema = "sys", Name = "change_tracking_tables", IsView = true)]
public class ChangeTrackingSchema.ChangeTrackingTable
- Inheritance
-
ChangeTrackingSchema.ChangeTrackingTable
- Extension Methods
Properties
BeginVersion
Version of the database when change tracking began for the table. This version is usually indicates when change tracking was enabled, but this value is reset if the table is truncated.
[Column("begin_version")]
[Nullable]
public long? BeginVersion { get; set; }
Property Value
- long?
CleanupVersion
Version up to which cleanup might have removed change tracking information.
[Column("cleanup_version")]
[Nullable]
public long? CleanupVersion { get; set; }
Property Value
- long?
IsTrackColumnsUpdatedOn
Current state of change tracking on the table:
0 = OFF
1 = ON
[Column("is_track_columns_updated_on")]
[NotNull]
public bool IsTrackColumnsUpdatedOn { get; set; }
Property Value
MinValidVersion
Minimum valid version of change tracking information that is available for the table.
When obtaining changes from the table that is associated with this row, the value of last_sync_version must be greater than or equal to the version reported by this column. For more information, see CHANGE_TRACKING_MIN_VALID_VERSION (Transact-SQL).
[Column("min_valid_version")]
[Nullable]
public long? MinValidVersion { get; set; }
Property Value
- long?
Object
objects (sys.objects)
[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = false)]
public ObjectSchema.Object Object { get; set; }
Property Value
ObjectID
ID of a table that has a change journal. The table can have a change journal even if change tracking is currently off.
The table ID is unique within the database.
[Column("object_id")]
[NotNull]
public int ObjectID { get; set; }