[longomatch] Cascade on deleted for 'Player' objects to delete them from the DB
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [longomatch] Cascade on deleted for 'Player' objects to delete them from the DB
- Date: Sun, 11 Oct 2009 15:14:30 +0000 (UTC)
commit 41adc82c573f66628d22ee609e0380142ea852d1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Oct 11 17:11:59 2009 +0200
Cascade on deleted for 'Player' objects to delete them from the DB
LongoMatch/DB/DataBase.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/DB/DataBase.cs b/LongoMatch/DB/DataBase.cs
index 230f4ca..9bab21a 100644
--- a/LongoMatch/DB/DataBase.cs
+++ b/LongoMatch/DB/DataBase.cs
@@ -221,7 +221,8 @@ namespace LongoMatch.DB
Db4oFactory.Configure().ObjectClass(typeof(TimeNode)).CascadeOnDelete(true);
Db4oFactory.Configure().ObjectClass(typeof(Time)).CascadeOnDelete(true);
Db4oFactory.Configure().ObjectClass(typeof(Team)).CascadeOnDelete(true);
- Db4oFactory.Configure().ObjectClass(typeof(HotKey)).CascadeOnDelete(true);
+ Db4oFactory.Configure().ObjectClass(typeof(HotKey)).CascadeOnDelete(true);
+ Db4oFactory.Configure().ObjectClass(typeof(Player)).CascadeOnDelete(true);
Db4oFactory.Configure().ObjectClass(typeof(TeamTemplate)).CascadeOnDelete(true);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]