Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LocalSessionFactoryObject.ExecuteSchemaScript Method

Execute the given schema script on the given ADO.NET Connection.

[Visual Basic]
Protected Overridable Sub ExecuteSchemaScript( _
   ByVal con As IDbConnection, _
   ByVal sql As String _
)
[C#]
protected virtual void ExecuteSchemaScript(
   IDbConnection con,
   string[] sql
);

Parameters

con
The connection to use.
sql
The SQL statement to execute.

Remarks

Note that the default implementation will log unsuccessful statements and continue to execute. Override the

ExecuteSchemaStatement
method to treat failures differently.

See Also

LocalSessionFactoryObject Class | Spring.Data.NHibernate Namespace