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:

  1. Current Copy the project file (DB) to the location.
  2. Open a new Nihberbanner session (session 2)
  3. Disconnect the existing session (session 1)
  4. For the session of the new session, session 1 (NHibernate Use the session. Reconnect ())
  5. 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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -