1
1
using System . Linq ;
2
2
using NHibernate . Criterion ;
3
- using NHibernate . Dialect ;
4
3
using NHibernate . Linq ;
5
4
using NHibernate . SqlCommand ;
6
5
using NHibernate . Transform ;
@@ -30,14 +29,7 @@ protected override void OnTearDown()
30
29
using ( var session = OpenSession ( ) )
31
30
using ( var transaction = session . BeginTransaction ( ) )
32
31
{
33
- // The HQL delete does all the job inside the database without loading the entities, but it does
34
- // not handle delete order for avoiding violating constraints if any. Use
35
- // session.Delete("from System.Object");
36
- // instead if in need of having NHibernate ordering the deletes, but this will cause
37
- // loading the entities in the session.
38
-
39
32
session . Delete ( "from System.Object" ) ;
40
-
41
33
transaction . Commit ( ) ;
42
34
}
43
35
}
@@ -59,9 +51,6 @@ public void TestUnfilteredLinqQuery()
59
51
[ Test ]
60
52
public void TestFilteredByWhereCollectionLinqQuery ( )
61
53
{
62
- if ( Dialect is PostgreSQLDialect )
63
- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
64
-
65
54
using ( var s = OpenSession ( ) )
66
55
{
67
56
var query = s . Query < Asset > ( )
@@ -143,9 +132,6 @@ public void TestQueryOverRestrictionWithClause()
143
132
[ Test ]
144
133
public void LazyLoad ( )
145
134
{
146
- if ( Dialect is PostgreSQLDialect )
147
- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
148
-
149
135
using ( var s = OpenSession ( ) )
150
136
{
151
137
var asset = s . Query < Asset > ( ) . First ( ) ;
@@ -158,9 +144,6 @@ public void LazyLoad()
158
144
[ Test ]
159
145
public void LazyLoadFiltered ( )
160
146
{
161
- if ( Dialect is PostgreSQLDialect )
162
- Assert . Ignore ( "Dialect doesn't support 0/1 to bool implicit cast" ) ;
163
-
164
147
using ( var s = OpenSession ( ) )
165
148
{
166
149
s . EnableFilter ( "deletedFilter" ) . SetParameter ( "deletedParam" , false ) ;
0 commit comments