RecroTrack Class

The RecroTrack is an independent, standalone module for tracking data changes and versions.

Definition

Namespace: Recrovit.RecroGridFramework
Assembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 6.5.0.24.0221.1
C#
public class RecroTrack : RecroTrackA, IDisposable
Inheritance
Object    RecroTrackA    RecroTrack
Implements
IDisposable

Remarks

Entities that need tracking should be added to the RecroTrack_Table table. In the [Keys] field, in the case of a composite key, a comma-separated list should be provided.

If the table contains a column named RowVersion (of type int), it is incremented with each modification. In case of an update, it monitors the original value and prevents modification if it has already changed.

appsettings.json

C#
"Recrovit": {
    "RecroTrack": {
        "Enabled": true,
        "RowVersionName": "rowversion"
    }
}

More information.

Constructors

RecroTrack Initializes a new instance of the RecroTrack class.

Properties

Enabled Gets a value indicating whether this RecroTrack is enabled.
FEPType Gets or sets the type of the FEP.
RGDataContext Gets or sets the context.
(Inherited from RecroTrackA)
RowVersionName Gets the name of the row version.
TransactionComment Gets or sets the comment.
TransactionName Gets or sets the name of the transaction.
UserId Gets or sets the user identifier.
UserName Gets the name of the user from UserId.

Methods

ClearCache Clears the cache.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
ExecuteUpdateAsync Creating a Custom Entry in RecroTrack
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Init Initialization of global settings for RecroTrack.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
SaveChangesAsync Calling SaveChanges on the DBContext and saving RecroTrack objects.
(Overrides RecroTrackASaveChangesAsync)
SaveChangesAsync(IRGFLogger, IRGDataContext, String, String, String) Calling SaveChanges on the DBContext and saving RecroTrack objects.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also