C# 클래스 ScrewTurn.Wiki.Plugins.SqlCommon.SqlStorageProviderBase

Implements a base class for a SQL storage provider.
상속: SqlClassBase
파일 보기 프로젝트 열기: mono/ScrewTurnWiki

보호된 프로퍼티들

프로퍼티 타입 설명
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