A strategy for describing how NHibernate should interact with the different .NET Data Providers.

Namespace: NHibernate.Driver
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public interface IDriver
Visual Basic
Public Interface IDriver
Visual C++
public interface class IDriver

Remarks

The IDriver interface is not intended to be exposed to the application. Instead it is used internally by NHibernate to obtain connection objects, command objects, and to generate and prepare IDbCommands. Implementors should provide a public default constructor.

This is the interface to implement, or you can inherit from DriverBase if you have an ADO.NET data provider that NHibernate does not have built in support for. To use the driver, NHibernate property connection.driver_class should be set to the assembly-qualified name of the driver class.

CopyC#
key="connection.driver_class"
value="FullyQualifiedClassName, AssemblyName"

See Also