C# Класс ScrewTurn.Wiki.Plugins.SqlCommon.SqlStorageProviderBase

Implements a base class for a SQL storage provider.
Наследование: SqlClassBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
connString string
host IHostV30

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

CreateOrUpdateDatabaseIfNecessary() защищенный абстрактный Метод

Creates or updates the database schema if necessary.
protected abstract CreateOrUpdateDatabaseIfNecessary ( ) : void
Результат void

GetCommandBuilder() защищенный абстрактный Метод

Gets a new command builder object.
protected abstract GetCommandBuilder ( ) : ICommandBuilder
Результат ICommandBuilder

Init() публичный Метод

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.
Результат void

LogException() защищенный Метод

Logs an exception.
protected LogException ( Exception ex ) : void
ex System.Exception The exception.
Результат void

Shutdown() публичный Метод

Method invoked on shutdown.
This method might not be invoked in some cases.
public Shutdown ( ) : void
Результат void

TryLoadSettingsStorageProviderConfiguration() защищенный абстрактный Метод

Tries to load the configuration of the corresponding settings storage provider.
protected abstract TryLoadSettingsStorageProviderConfiguration ( ) : string
Результат string

TryLoadV2Configuration() защищенный абстрактный Метод

Tries to load the configuration from a corresponding v2 provider.
protected abstract TryLoadV2Configuration ( ) : string
Результат string

ValidateConnectionString() защищенный абстрактный Метод

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.
Результат void

Описание свойств

connString защищенное свойство

The connection string.
protected string connString
Результат string

host защищенное свойство

The host.
protected IHostV30 host
Результат IHostV30