File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/NHibernate.Test/Async/Linq Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 14
14
using System . Linq . Expressions ;
15
15
using System . Reflection ;
16
16
using System . Text . RegularExpressions ;
17
- using NHibernate . DomainModel . Northwind . Entities ;
18
17
using NHibernate . Hql . Ast ;
19
18
using NHibernate . Linq . Functions ;
20
19
using NHibernate . Linq . Visitors ;
@@ -32,7 +31,7 @@ public class CustomExtensionsExampleAsync : LinqTestCase
32
31
protected override void Configure ( NHibernate . Cfg . Configuration configuration )
33
32
{
34
33
configuration . LinqToHqlGeneratorsRegistry < MyLinqToHqlGeneratorsRegistry > ( ) ;
35
- }
34
+ }
36
35
37
36
[ Test ( Description = "GH-2963" ) ]
38
37
public async Task CanUseComparisonWithExtensionOnMappedPropertyAsync ( )
Original file line number Diff line number Diff line change @@ -475,6 +475,17 @@ where item.Gender.Equals(item.Gender)
475
475
await ( ObjectDumper . WriteAsync ( query ) ) ;
476
476
}
477
477
478
+
479
+ [ Test ]
480
+ public async Task WhereObjectEqualAsync ( )
481
+ {
482
+ var query = from item in db . PatientRecords
483
+ where ( ( object ) item . Gender ) . Equals ( Gender . Female )
484
+ select item ;
485
+
486
+ await ( ObjectDumper . WriteAsync ( query ) ) ;
487
+ }
488
+
478
489
[ Test ]
479
490
public async Task WhereEquatableEqualAsync ( )
480
491
{
You can’t perform that action at this time.
0 commit comments