Class SimpleScriptExecutor
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
providerNamestringThe 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)