1010
1111using System . Linq ;
1212using NHibernate . Criterion ;
13- using NHibernate . Dialect ;
1413using NHibernate . Linq ;
1514using NHibernate . SqlCommand ;
1615using NHibernate . Transform ;
@@ -41,14 +40,7 @@ protected override void OnTearDown()
4140 using ( var session = OpenSession ( ) )
4241 using ( var transaction = session . BeginTransaction ( ) )
4342 {
44- // The HQL delete does all the job inside the database without loading the entities, but it does
45- // not handle delete order for avoiding violating constraints if any. Use
46- // session.Delete("from System.Object");
47- // instead if in need of having NHibernate ordering the deletes, but this will cause
48- // loading the entities in the session.
49-
5043 session . Delete ( "from System.Object" ) ;
51-
5244 transaction . Commit ( ) ;
5345 }
5446 }
@@ -70,9 +62,6 @@ public async Task TestUnfilteredLinqQueryAsync()
7062 [ Test ]
7163 public async Task TestFilteredByWhereCollectionLinqQueryAsync ( )
7264 {
73- if ( Dialect is PostgreSQLDialect )
74- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
75-
7665 using ( var s = OpenSession ( ) )
7766 {
7867 var query = await ( s . Query < Asset > ( )
@@ -154,9 +143,6 @@ public async Task TestQueryOverRestrictionWithClauseAsync()
154143 [ Test ]
155144 public async Task LazyLoadAsync ( )
156145 {
157- if ( Dialect is PostgreSQLDialect )
158- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
159-
160146 using ( var s = OpenSession ( ) )
161147 {
162148 var asset = await ( s . Query < Asset > ( ) . FirstAsync ( ) ) ;
@@ -169,9 +155,6 @@ public async Task LazyLoadAsync()
169155 [ Test ]
170156 public async Task LazyLoadFilteredAsync ( )
171157 {
172- if ( Dialect is PostgreSQLDialect )
173- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
174-
175158 using ( var s = OpenSession ( ) )
176159 {
177160 s . EnableFilter ( "deletedFilter" ) . SetParameter ( "deletedParam" , false ) ;
0 commit comments