File tree 2 files changed +7
-3
lines changed
NHibernate.Test/Async/Ado
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ protected override bool AppliesTo(Engine.ISessionFactoryImplementor factory)
56
56
#if NET6_0_OR_GREATER
57
57
if ( _useDbBatch )
58
58
{
59
- return factory . Settings . BatcherFactory is DbBatchBatcherFactory ;
59
+ return factory . Settings . BatcherFactory is DbBatchBatcherFactory && factory . Settings . ConnectionProvider . Driver is Driver . DriverBase driverBase && driverBase . CanCreateBatch ;
60
60
}
61
61
#endif
62
62
return ! ( factory . Settings . BatcherFactory is NonBatchingBatcherFactory ) ;
@@ -122,13 +122,18 @@ public async Task OneRoundTripUpdateAsync()
122
122
await ( CleanupAsync ( ) ) ;
123
123
}
124
124
125
- [ Test , NetFxOnly ]
125
+ [ Test ]
126
126
[ Description ( "SqlClient: The batcher log output should be formatted" ) ]
127
127
public async Task BatchedoutputShouldBeFormattedAsync ( )
128
128
{
129
129
#if NETFX
130
130
if ( Sfi . Settings . BatcherFactory is SqlClientBatchingBatcherFactory == false )
131
131
Assert . Ignore ( "This test is for SqlClientBatchingBatcher only" ) ;
132
+ #elif NET6_0_OR_GREATER
133
+ if ( Sfi . Settings . BatcherFactory is DbBatchBatcherFactory == false )
134
+ Assert . Ignore ( "This test is for DbBatchBatcherFactory only" ) ;
135
+ #else
136
+ Assert . Ignore ( "This test is for NETFX and NET6_0_OR_GREATER only" ) ;
132
137
#endif
133
138
134
139
using ( var sqlLog = new SqlLogSpy ( ) )
Original file line number Diff line number Diff line change 22
22
using NHibernate . SqlTypes ;
23
23
using NHibernate . Util ;
24
24
using NHibernate . AdoNet . Util ;
25
- using System . Linq ;
26
25
27
26
namespace NHibernate . AdoNet
28
27
{
You can’t perform that action at this time.
0 commit comments