File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Async/NHSpecificTest/GH1754 Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ protected override void OnTearDown()
29
29
using ( var session = OpenSession ( ) )
30
30
using ( var transaction = session . BeginTransaction ( ) )
31
31
{
32
+ // Firebird does not like deleting tables with auto-fk.
33
+ foreach ( var e in session . Query < Entity > ( ) )
34
+ {
35
+ e . Children . Clear ( ) ;
36
+ }
37
+ session . Flush ( ) ;
38
+
32
39
session . CreateQuery ( "delete from System.Object" ) . ExecuteUpdate ( ) ;
33
40
34
41
transaction . Commit ( ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ protected override void OnTearDown()
17
17
using ( var session = OpenSession ( ) )
18
18
using ( var transaction = session . BeginTransaction ( ) )
19
19
{
20
+ // Firebird does not like deleting tables with auto-fk.
21
+ foreach ( var e in session . Query < Entity > ( ) )
22
+ {
23
+ e . Children . Clear ( ) ;
24
+ }
25
+ session . Flush ( ) ;
26
+
20
27
session . CreateQuery ( "delete from System.Object" ) . ExecuteUpdate ( ) ;
21
28
22
29
transaction . Commit ( ) ;
You can’t perform that action at this time.
0 commit comments