C# Class ScrewTurn.Wiki.Plugins.SqlCommon.SqlStorageProviderBase

Implements a base class for a SQL storage provider.
Inheritance: SqlClassBase
Afficher le fichier Open project: mono/ScrewTurnWiki

Protected Properties

Свойство Type Description
connString string
host IHostV30

Méthodes publiques

Méthode Description
Init ( IHostV30 host, string config ) : void

Initializes the Storage Provider.

Shutdown ( ) : void

Method invoked on shutdown.

This method might not be invoked in some cases.

Méthodes protégées

Méthode Description
CreateOrUpdateDatabaseIfNecessary ( ) : void

Creates or updates the database schema if necessary.

GetCommandBuilder ( ) : ICommandBuilder

Gets a new command builder object.

LogException ( Exception ex ) : void

Logs an exception.

TryLoadSettingsStorageProviderConfiguration ( ) : string

Tries to load the configuration of the corresponding settings storage provider.

TryLoadV2Configuration ( ) : string

Tries to load the configuration from a corresponding v2 provider.

ValidateConnectionString ( string connString ) : void

Validates a connection string.

If the connection string is invalid, the method throws T:InvalidConfigurationException.

Method Details

CreateOrUpdateDatabaseIfNecessary() protected abstract méthode

Creates or updates the database schema if necessary.
protected abstract CreateOrUpdateDatabaseIfNecessary ( ) : void
Résultat void

GetCommandBuilder() protected abstract méthode

Gets a new command builder object.
protected abstract GetCommandBuilder ( ) : ICommandBuilder
Résultat ICommandBuilder

Init() public méthode

Initializes the Storage Provider.
If host or config are null. If config is not valid or is incorrect.
public Init ( IHostV30 host, string config ) : void
host IHostV30 The Host of the Component.
config string The Configuration data, if any.
Résultat void

LogException() protected méthode

Logs an exception.
protected LogException ( Exception ex ) : void
ex System.Exception The exception.
Résultat void

Shutdown() public méthode

Method invoked on shutdown.
This method might not be invoked in some cases.
public Shutdown ( ) : void
Résultat void

TryLoadSettingsStorageProviderConfiguration() protected abstract méthode

Tries to load the configuration of the corresponding settings storage provider.
protected abstract TryLoadSettingsStorageProviderConfiguration ( ) : string
Résultat string

TryLoadV2Configuration() protected abstract méthode

Tries to load the configuration from a corresponding v2 provider.
protected abstract TryLoadV2Configuration ( ) : string
Résultat string

ValidateConnectionString() protected abstract méthode

Validates a connection string.
If the connection string is invalid, the method throws T:InvalidConfigurationException.
protected abstract ValidateConnectionString ( string connString ) : void
connString string The connection string to validate.
Résultat void

Property Details

connString protected_oe property

The connection string.
protected string connString
Résultat string

host protected_oe property

The host.
protected IHostV30 host
Résultat IHostV30