C# Class GSF.TimeSeries.Configuration.DatabaseConfigurationLoader

Represents a configuration loader that gets its configuration from a database connection.
Inheritance: ConfigurationLoaderBase, IDisposable
Mostra file Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
Augment ( DataSet configuration ) : void

Augments the given configuration data set with the changes tracked since the version of the given configuration data set.

Close ( ) : void

Closes the database connection.

Dispose ( ) : void

Releases all the resources used by the DatabaseConfigurationLoader object.

Load ( ) : DataSet

Loads the entire configuration data set from scratch.

Open ( ) : void

Opens the database connection.

Private Methods

Method Description
AddVersion ( DataSet configuration, ulong version ) : void
Execute ( Action action ) : void
ExecuteDataOperations ( ulong trackingVersion = ulong.MinValue ) : void
ExtractSecurityContext ( ) : void
GetChangedRecords ( string tableName, string primaryKeyColumn, ulong currentVersion ) : DataTable
GetEntities ( ) : DataTable
GetLatestVersion ( ulong currentVersion ) : ulong
GetTrackedChanges ( ulong currentVersion ) : DataTable
GetVersion ( DataSet configuration ) : ulong
LoadTable ( DataRow entityRow ) : DataTable
TrackedChangesAreValid ( ulong currentVersion ) : bool
Update ( DataRow row, DataRow updates ) : void

Method Details

Augment() public method

Augments the given configuration data set with the changes tracked since the version of the given configuration data set.
public Augment ( DataSet configuration ) : void
configuration System.Data.DataSet The configuration data set to be augmented.
return void

Close() public method

Closes the database connection.
public Close ( ) : void
return void

Dispose() public method

Releases all the resources used by the DatabaseConfigurationLoader object.
public Dispose ( ) : void
return void

Load() public method

Loads the entire configuration data set from scratch.
public Load ( ) : DataSet
return System.Data.DataSet

Open() public method

Opens the database connection.
public Open ( ) : void
return void