File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -286,11 +286,11 @@ public async Task AutoDiscoverWorksWithFutureAsync()
286
286
{
287
287
var future =
288
288
s
289
- . CreateSQLQuery ( "select count(*) as count from EntitySimpleChild where Name like :pattern" )
290
- . AddScalar ( "count " , NHibernateUtil . Int64 )
289
+ . CreateSQLQuery ( "select count(*) as childCount from EntitySimpleChild where Name like :pattern" )
290
+ . AddScalar ( "childCount " , NHibernateUtil . Int64 )
291
291
. SetString ( "pattern" , "Chi%" )
292
292
. SetCacheable ( true )
293
- . FutureValue < long > ( ) ;
293
+ . FutureValue < long > ( ) ;
294
294
295
295
Assert . That ( await ( future . GetValueAsync ( ) ) , Is . EqualTo ( 2L ) , "From DB" ) ;
296
296
await ( t . CommitAsync ( ) ) ;
@@ -301,8 +301,8 @@ public async Task AutoDiscoverWorksWithFutureAsync()
301
301
{
302
302
var future =
303
303
s
304
- . CreateSQLQuery ( "select count(*) as count from EntitySimpleChild where Name like :pattern" )
305
- . AddScalar ( "count " , NHibernateUtil . Int64 )
304
+ . CreateSQLQuery ( "select count(*) as childCount from EntitySimpleChild where Name like :pattern" )
305
+ . AddScalar ( "childCount " , NHibernateUtil . Int64 )
306
306
. SetString ( "pattern" , "Chi%" )
307
307
. SetCacheable ( true )
308
308
. FutureValue < long > ( ) ;
Original file line number Diff line number Diff line change @@ -274,11 +274,11 @@ public void AutoDiscoverWorksWithFuture()
274
274
{
275
275
var future =
276
276
s
277
- . CreateSQLQuery ( "select count(*) as count from EntitySimpleChild where Name like :pattern" )
278
- . AddScalar ( "count " , NHibernateUtil . Int64 )
277
+ . CreateSQLQuery ( "select count(*) as childCount from EntitySimpleChild where Name like :pattern" )
278
+ . AddScalar ( "childCount " , NHibernateUtil . Int64 )
279
279
. SetString ( "pattern" , "Chi%" )
280
280
. SetCacheable ( true )
281
- . FutureValue < long > ( ) ;
281
+ . FutureValue < long > ( ) ;
282
282
283
283
Assert . That ( future . Value , Is . EqualTo ( 2L ) , "From DB" ) ;
284
284
t . Commit ( ) ;
@@ -289,8 +289,8 @@ public void AutoDiscoverWorksWithFuture()
289
289
{
290
290
var future =
291
291
s
292
- . CreateSQLQuery ( "select count(*) as count from EntitySimpleChild where Name like :pattern" )
293
- . AddScalar ( "count " , NHibernateUtil . Int64 )
292
+ . CreateSQLQuery ( "select count(*) as childCount from EntitySimpleChild where Name like :pattern" )
293
+ . AddScalar ( "childCount " , NHibernateUtil . Int64 )
294
294
. SetString ( "pattern" , "Chi%" )
295
295
. SetCacheable ( true )
296
296
. FutureValue < long > ( ) ;
You can’t perform that action at this time.
0 commit comments