From 51da80a8506f08511c45e8fd87044989f8221b87 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 5 May 2007 21:49:24 +0000 Subject: Grid Framework for DB4o - supports all framework.data interfaces. *** Important Note *** Framework.Data interfaces are not yet complete (they are strictly read-only right now), because of this, write support is not yet implemented. --- OpenGrid.Framework.Data.DB4o/DB4oManager.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 OpenGrid.Framework.Data.DB4o/DB4oManager.cs (limited to 'OpenGrid.Framework.Data.DB4o/DB4oManager.cs') diff --git a/OpenGrid.Framework.Data.DB4o/DB4oManager.cs b/OpenGrid.Framework.Data.DB4o/DB4oManager.cs new file mode 100644 index 0000000..f889636 --- /dev/null +++ b/OpenGrid.Framework.Data.DB4o/DB4oManager.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Db4objects.Db4o; +using OpenGrid.Framework.Data; +using libsecondlife; + +namespace OpenGrid.Framework.Data.DB4o +{ + class DB4oManager + { + public Dictionary profiles = new Dictionary(); + + public DB4oManager(string db4odb) + { + IObjectContainer database; + database = Db4oFactory.OpenFile(db4odb); + IObjectSet result = database.Get(typeof(SimProfileData)); + foreach(SimProfileData row in result) { + profiles.Add(row.UUID, row); + } + database.Close(); + } + + + } +} -- cgit v1.1