Refer to DriverBase and not IDriver for .NET 1.1

This commit is contained in:
markpollack
2008-10-14 22:01:03 +00:00
parent a094575679
commit cfa50ba4d7

View File

@@ -652,8 +652,11 @@ namespace Spring.Data.NHibernate
"Implementations of IApplicationContext must also implement IConfigurableApplicationContext");
}
#if NET_1_1
DriverBase db = cp.Driver as DriverBase;
#else
IDriver db = cp.Driver;
#endif
if (db != null)
{
Type hibCommandType = db.CreateCommand().GetType();