File tree 2 files changed +44
-1
lines changed
Filter options
2 files changed +44
-1
lines changed
Original file line number Diff line number Diff line change
1
+ //------------------------------------------------------------------------------
2
+ // <auto-generated>
3
+ // This code was generated by AsyncGenerator.
4
+ //
5
+ // Changes to this file may cause incorrect behavior and will be lost if
6
+ // the code is regenerated.
7
+ // </auto-generated>
8
+ //------------------------------------------------------------------------------
9
+
10
+
11
+ using System ;
12
+ using System . Collections . Generic ;
13
+ using System . Data ;
14
+ using System . Data . Common ;
15
+ using NHibernate . AdoNet ;
16
+ using NHibernate . Dialect ;
17
+ using NHibernate . Engine ;
18
+ using NHibernate . SqlTypes ;
19
+ using NHibernate . Util ;
20
+
21
+ namespace NHibernate . Driver
22
+ {
23
+ using System . Threading . Tasks ;
24
+ using System . Threading ;
25
+ public partial class MicrosoftDataSqlClientDriver : ReflectionBasedDriver , IEmbeddedBatcherFactoryProvider , IParameterAdjuster
26
+ {
27
+
28
+ public override async Task < DbDataReader > ExecuteReaderAsync ( DbCommand command , CancellationToken cancellationToken )
29
+ {
30
+ cancellationToken . ThrowIfCancellationRequested ( ) ;
31
+ var reader = await ( command . ExecuteReaderAsync ( cancellationToken ) ) . ConfigureAwait ( false ) ;
32
+
33
+ return new SqlServerDbDataReader ( reader ) ;
34
+ }
35
+ }
36
+ }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace NHibernate.Driver
13
13
/// <summary>
14
14
/// A NHibernate Driver for using the SqlClient DataProvider
15
15
/// </summary>
16
- public class MicrosoftDataSqlClientDriver : ReflectionBasedDriver , IEmbeddedBatcherFactoryProvider , IParameterAdjuster
16
+ public partial class MicrosoftDataSqlClientDriver : ReflectionBasedDriver , IEmbeddedBatcherFactoryProvider , IParameterAdjuster
17
17
{
18
18
const byte MaxTime = 5 ;
19
19
@@ -217,5 +217,12 @@ public override IResultSetsCommand GetResultSetsCommand(ISessionImplementor sess
217
217
{
218
218
return new BasicResultSetsCommand ( session ) ;
219
219
}
220
+
221
+ public override DbDataReader ExecuteReader ( DbCommand command )
222
+ {
223
+ var reader = command . ExecuteReader ( ) ;
224
+
225
+ return new SqlServerDbDataReader ( reader ) ;
226
+ }
220
227
}
221
228
}
You can’t perform that action at this time.
0 commit comments