Search   

Sunday, February 05, 2012

Support » Support Forum

Register  Login

 Menu  
 
    

 Welcome!  
 


Welcome to the NDO support forum!

kreis.gif 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.
kreis.gif 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.
kreis.gif The forum software requires that javascript is enabled.
kreis.gif Please do not insert licence information or licence keys in forum posts.
kreis.gif If you know a good answer to a post of another user, feel free to reply!
kreis.gif The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.

   Print   

      
 NDO Support Forum  
 
SearchForum Home
  NDO-Forum postings in english please, if possible.  Developing with NDO  Multiple Mappin...
 Multiple Mapping-Files in a loosely coupled modular Application
 
 10/16/2006 10:49:17 AM
anonymous
20 posts


Multiple Mapping-Files in a loosely coupled modular Application
 Modified By anonymous  on 10/16/2006 11:10:56 AM)
Hello, in a project that uses several modules (each with persitent classes) which are loaded dynamically at runtime, I got the following problem: Each module has it's own NDOMapping.xml file; as all modules are copied into a single application directory together with their mapping-files, but only one NDOMapping.xml is possible. Should the differerent Mapping-Files be merged together (and how?) or is there another workaround for this? RL
 10/16/2006 11:08:58 AM
Support
5 posts


Re: Multiple Mapping-Files in a loosely coupled modular Application
 Modified By Mirko  on 10/16/2006 12:42:24 PM)

Hello RL,
you can instantiate the PersistenceManager with the Name of the mapping file as parameter; e.g. PersistenceManager pm = New PersistenceManager("Module1Mapping.xml"); To get the different mapping files in your application directory, you can use the post-build event of Visual Studio in your module projects and add a copy statement copying the original NDOMapping.xml with the new name to your application directory. Hope, that helps. Best Regards, NDO Support

  NDO-Forum postings in english please, if possible.  Developing with NDO  Multiple Mappin...
  SearchSearch  Forum HomeForum Home