An implementation of the IConnectionProvider that simply throws an exception when a connection is requested.

Namespace:  NHibernate.Connection
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Class UserSuppliedConnectionProvider _
	Inherits ConnectionProvider
C#
public class UserSuppliedConnectionProvider : ConnectionProvider
Visual C++
public ref class UserSuppliedConnectionProvider : public ConnectionProvider
JavaScript
NHibernate.Connection.UserSuppliedConnectionProvider = function();

Type.createClass(
	'NHibernate.Connection.UserSuppliedConnectionProvider',
	NHibernate.Connection.ConnectionProvider);

Remarks

This implementation indicates that the user is expected to supply an ADO.NET connection

Inheritance Hierarchy

System..::.Object
  NHibernate.Connection..::.ConnectionProvider
    NHibernate.Connection..::.UserSuppliedConnectionProvider

See Also