sqlite - Implementing SaveAs with NHibernate -
I am working in a project We are developing the Save-As functionality for a desktop desktop application. This user should allow his work to be saved in a separate location (saveAs;)
Our project file has a slit DB with our domain objects and continuity is done using NIHbernet, now our SaveAs logic looks like this:
- Current Copy the project file (DB) to the location.
- Open a new Nihberbanner session (session 2)
- Disconnect the existing session (session 1)
- For the session of the new session, session 1 (NHibernate Use the session. Reconnect ())
- Open the new connection
This is considered to be a little complicated that I have not got a better connection. So my questions are:
How does a SaveAs implement for an open session in Nhibernate?
Comments
Post a Comment