Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionFactoryUtils.NewAdoExceptionTranslator Method

Create a IAdoExceptionTranslator from the given SessionFactory.

[Visual Basic]
Public Shared Sub NewAdoExceptionTranslator( _
   ByVal sessionFactory As ISessionFactory _
)
[C#]
public static IAdoExceptionTranslator NewAdoExceptionTranslator(
   ISessionFactory sessionFactory
);

Parameters

sessionFactory
The session factory to create the translator for

Return Value

An IAdoExceptionTranslator

Remarks

If a corresponding IDbProvider is found, a ErrorcodeExceptionTranslator for the IDbProvider is created. Otherwise, a FallbackException is created.

See Also

SessionFactoryUtils Class | Spring.Data.NHibernate Namespace