Hi Gilles, sorry about that last message, I think I've got it going now, the problem was that I wasn't setting the new store immediately after creating the manager.
Just a though on how this could be improved... I am using several different DaoManagers (as I have a few different database that I need to connect to) and I have to set the Hybrid store on each one separately. It might be nice for this to be put in the configuration rather than in code. It seems to be something that just needs to be set up once and then forgotten about. Thanks for your help on fixing my issues, Cheers, Greg ________________________________ From: Greg Jackman [mailto:[EMAIL PROTECTED] Sent: Friday, 9 February 2007 1:16 p.m. To: [email protected] Subject: RE: Writing a custom session store by implementing ISessionStore Hi Gilles, I've moved to the latest version of the data access and data mapper libraries. Using the new session store I have the following problem when I try to use my DAO methods: "DaoManager could not invoke CloseConnection(). No connection was started. Call OpenConnection() first." Does this mean that by using a new session store, I am now responsible for opening and closing connections when using the mapper? Thanks, Greg ________________________________ From: Gilles Bayon [mailto:[EMAIL PROTECTED] Sent: Friday, 9 February 2007 8:25 a.m. To: [email protected] Subject: Re: Writing a custom session store by implementing ISessionStore Yes On 2/8/07, Greg Jackman <[EMAIL PROTECTED]> wrote: Thanks for that Gilles, I'll give it a go. Do I need to upgrade to the latest beta version to be able to set the session store? Cheers, Greg ________________________________ From: Gilles Bayon [mailto: [EMAIL PROTECTED] Sent: Friday, 9 February 2007 7:58 a.m . To: [email protected] Subject: Re: Writing a custom session store by implementing ISessionStore You can used the HybridWebThreadSessionStore ISqlMapper mapper = builder.Configure(...); mapper.SessionStore = new HybridWebThreadSessionStore( sqlMapper.Id ); Set the custom session store once you have build the ISqlMapper and before you use it. -- Cheers, Gilles <a href=" http://www.amazon.com/gp/registry/6JCP7AORB0LE <http://www.amazon.com/gp/registry/6JCP7AORB0LE> ">Wish List</a> -- Cheers, Gilles <a href=" http://www.amazon.com/gp/registry/6JCP7AORB0LE <http://www.amazon.com/gp/registry/6JCP7AORB0LE> ">Wish List</a>

