Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LocalSessionFactoryObject.DbProvider Property

Get or set the DataSource to be used by the SessionFactory.

[Visual Basic]
Public Property DbProvider() As IDbProvider
   Public Get
   End Get
   Public Set
   End Set
End Property
public IDbProvider DbProvider { public get; public set; }

Property Value

The db provider.


If set, this will override corresponding settings in Hibernate properties.

Note   Note: If this is set, the Hibernate settings should not define a connection string (hibernate.connection.connection_string) to avoid meaningless double configuration.

See Also

LocalSessionFactoryObject Class | Spring.Data.NHibernate Namespace