Class SimpleScriptExecutor

Namespace
DbExport.Providers
Assembly
DbExport.Api.dll

Provides a simple implementation of the IScriptExecutor interface that executes SQL scripts against a database connection using the SqlHelper class.

public class SimpleScriptExecutor : IScriptExecutor
Inheritance
SimpleScriptExecutor
Implements
Inherited Members

Constructors

SimpleScriptExecutor(string)

Provides a simple implementation of the IScriptExecutor interface that executes SQL scripts against a database connection using the SqlHelper class.

public SimpleScriptExecutor(string providerName)

Parameters

providerName string

The name of the database provider used to establish the connection.

Methods

Execute(string, string)

Executes a SQL script against the specified database connection.

public void Execute(string connectionString, string script)

Parameters

connectionString string

The connection string used to connect to the database.

script string

The SQL script to be executed.