Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTransactionManager.AutodetectDbProvider Property

Set whether to autodetect a ADO.NET connection used by the Hibernate SessionFactory, if set via LocalSessionFactoryObject's

DbProvider
. Default is "true".

[Visual Basic]
Public WriteOnly Property AutodetectDbProvider() As Boolean
   Public Set
   End Set
End Property
[C#]
public bool AutodetectDbProvider { public set; }

Property Value

true if [autodetect data source]; otherwise, false.

Remarks

Can be turned off to deliberately ignore an available IDbProvider, to not expose Hibernate transactions as ADO.NET transactions for that IDbProvider.

See Also

HibernateTransactionManager Class | Spring.Data.NHibernate Namespace