C# Класс ConfigurationSetupUtility.OracleSetup

This class is used to aid in the manipulation of an Oracle DB connection string as well as executing scripts and storing the data required for Oracle DB setup.
Показать файл Открыть проект

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

Метод Описание
ExecuteScript ( IDbConnection connection, string fileName ) : void

Executes a database script using the given connection.

ExecuteScript ( string fileName ) : void

Executes a database script as the admin user.

ExecuteStatement ( IDbConnection connection, string statement ) : void

Executes the given statement using the given connection.

ExecuteStatement ( string statement ) : void

Executes the given statement as the admin user.

OpenAdminConnection ( IDbConnection &connection ) : void

Opens a connection as the admin user.

OpenConnection ( IDbConnection &connection ) : void

Opens a connection as the schema user.

OracleSetup ( ) : System

Creates a new instance of the OracleSetup class.

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

Метод Описание
OpenConnection ( IDbConnection &connection, string connectionString ) : void

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

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

Executes a database script using the given connection.
public ExecuteScript ( IDbConnection connection, string fileName ) : void
connection IDbConnection The connection to be used to execute the script.
fileName string The path to the script to be executed.
Результат void

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

Executes a database script as the admin user.
public ExecuteScript ( string fileName ) : void
fileName string The path to the script to be executed.
Результат void

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

Executes the given statement using the given connection.
public ExecuteStatement ( IDbConnection connection, string statement ) : void
connection IDbConnection The connection used to execute the statement.
statement string The statement to be executed.
Результат void

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

Executes the given statement as the admin user.
public ExecuteStatement ( string statement ) : void
statement string The statement to be executed.
Результат void

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

Opens a connection as the admin user.
public OpenAdminConnection ( IDbConnection &connection ) : void
connection IDbConnection The connection object to be created and opened.
Результат void

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

Opens a connection as the schema user.
public OpenConnection ( IDbConnection &connection ) : void
connection IDbConnection The connection object to be created and opened.
Результат void

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

Creates a new instance of the OracleSetup class.
public OracleSetup ( ) : System
Результат System