10
10
11
11
using System . Linq ;
12
12
using NHibernate . Criterion ;
13
- using NHibernate . Dialect ;
14
13
using NHibernate . Linq ;
15
14
using NHibernate . SqlCommand ;
16
15
using NHibernate . Transform ;
@@ -41,14 +40,7 @@ protected override void OnTearDown()
41
40
using ( var session = OpenSession ( ) )
42
41
using ( var transaction = session . BeginTransaction ( ) )
43
42
{
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
-
50
43
session . Delete ( "from System.Object" ) ;
51
-
52
44
transaction . Commit ( ) ;
53
45
}
54
46
}
@@ -70,9 +62,6 @@ public async Task TestUnfilteredLinqQueryAsync()
70
62
[ Test ]
71
63
public async Task TestFilteredByWhereCollectionLinqQueryAsync ( )
72
64
{
73
- if ( Dialect is PostgreSQLDialect )
74
- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
75
-
76
65
using ( var s = OpenSession ( ) )
77
66
{
78
67
var query = await ( s . Query < Asset > ( )
@@ -154,9 +143,6 @@ public async Task TestQueryOverRestrictionWithClauseAsync()
154
143
[ Test ]
155
144
public async Task LazyLoadAsync ( )
156
145
{
157
- if ( Dialect is PostgreSQLDialect )
158
- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
159
-
160
146
using ( var s = OpenSession ( ) )
161
147
{
162
148
var asset = await ( s . Query < Asset > ( ) . FirstAsync ( ) ) ;
@@ -169,9 +155,6 @@ public async Task LazyLoadAsync()
169
155
[ Test ]
170
156
public async Task LazyLoadFilteredAsync ( )
171
157
{
172
- if ( Dialect is PostgreSQLDialect )
173
- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
174
-
175
158
using ( var s = OpenSession ( ) )
176
159
{
177
160
s . EnableFilter ( "deletedFilter" ) . SetParameter ( "deletedParam" , false ) ;
0 commit comments