db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Browse by Tags

All Tags » asp.net » ObjectContainer   (RSS)
  • Re: ASP.NET 2.0 and DB4O?

    Add a Global.asa file and in your Application.Initialize event, call objectServer = Db4o.OpenServer(Server.MapPath(''~/app_data/mydb.yap'')) and put it in a static variable. Then in your Application_BeginRequest, call db = objectServer.OpenClient() and add the result to HttpContext.Current.Items.Add(db);
    Posted to db4o User Forum (Forum) by Eric Falsken on September 30, 2006
  • Re: ASP.NET 2.0 and DB4O?

    Nope, I can't get it to work :(  I need a global instance of ObjectContainer but I don't know where to put it.   /Henrik
    Posted to db4o User Forum (Forum) by port513 on September 28, 2006