Sunday, February 05, 2012
Support » Support Forum
Register Login
HomeWhat is NDO?- Executive Overview- NDO for DevelopersHow NDO Works- Persistent Classes- Mapping- Queries- Reverse Engineering- Inheritance, Polymorphism- Distributed ApplicationsLicensingSupport- Support Forum- FAQ- Solutions- Downloads- E-Mail Support- Tutorial VideosOnline ShopContact
Welcome to the NDO support forum!
Please register/login at the site if you want to post a thread. We sometimes copy support mails of common interest to the forum. They appear with anonymous sender. Please post your messages in English language if possible. You can do your posts also in German, we will translate your post and our answer so that all users of the forum can read your posts. The forum software requires that javascript is enabled. Please do not insert licence information or licence keys in forum posts. If you know a good answer to a post of another user, feel free to reply! The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.
Hi,
is in NDO a way for changing the connection as runtime ? I need that for change the user and the pws at runtime.
Hi Igor,
you have two ways to do it. The more common way is to use an alias connection string in your mapping file and implement an OpenConnectionListener using the method RegisterConnectionListener of the PersistenceManager. The OpenConnectionListener will be called back each time, the PM. opens the connection.
Between two transactions you can also manipulate the mapping information using the mapping API in NDO.Mapping. You get the root of the mapping tree with the property pm.NDOMapping. Note: This behavior may change over the time. If you want to be sure, that your new connection string applies in future NDO versions, use the ConnectionListener.
RegardsMirko