C# Класс ScrewTurn.Wiki.Plugins.SqlServer.SqlServerPagesStorageProvider

Implements a SQL Server-based users storage provider.
Наследование: ScrewTurn.Wiki.Plugins.SqlCommon.SqlPagesStorageProviderBase, IPagesStorageProviderV30
Показать файл Открыть проект

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

Метод Описание
CreateOrUpdateDatabaseIfNecessary ( ) : void

Creates or updates the database schema if necessary.

GetCommandBuilder ( ) : ICommandBuilder

Gets a new command builder object.

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.

Приватные методы

Метод Описание
CreateStandardSchema ( ) : void

Creates the standard database schema.

GetCommand ( string connString ) : SqlCommand

Gets a new command with an open connection.

SchemaAllowsUpgradeFrom20 ( ) : bool

Detects whether an upgrade is possible from version 2.0.

SchemaExists ( ) : bool

Detects whether the database schema exists.

SchemaNeedsUpdate ( ) : bool

Detects whether the database schema needs to be updated.

Update3000to3001 ( ) : void

Updates the database schema from version 3000 to version 3001.

UpgradeFrom20 ( ) : void

Upgrades the database schema and data from version 2.0.

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

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

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

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

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

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

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

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

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

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

Validates a connection string.
If the connection string is invalid, the method throws T:InvalidConfigurationException.
protected ValidateConnectionString ( string connString ) : void
connString string The connection string to validate.
Результат void