Skip to content

Commit b5f9c1c

Browse files
committed
NH-3807 - Guard on Odbc and OleDb
1 parent ada7377 commit b5f9c1c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/NHibernate/Driver/OdbcDriver.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if FEATURE_ODBC_OLEDB
2+
13
using System;
24
using System.Collections.Generic;
35
using System.Data;
@@ -84,3 +86,5 @@ protected override void InitializeParameter(DbParameter dbParam, string name, Sq
8486
}
8587
}
8688
}
89+
90+
#endif

src/NHibernate/Driver/OleDbDriver.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if FEATURE_ODBC_OLEDB
2+
13
using System;
24
using System.Data.Common;
35
using System.Data.OleDb;
@@ -49,4 +51,6 @@ public override bool SupportsMultipleOpenReaders
4951
get { return false; }
5052
}
5153
}
52-
}
54+
}
55+
56+
#endif

0 commit comments

Comments
 (0)