Three overloads of the EntityManager constructor take a DataSourceExtension parameter which will direct retrievals and saves to a specific instance of the database against whose schema a given entity was defined. See the material on DataSourceKeys, DataSourceExtension, and DataSourceKeyResolvers in the Business Object Persistence_Advanced topic documents, and in the sample solutions at
I would like set the EntityConnection of my EntityManager.
How do I do that?
What I am trying to achieve, is I have a Windows service that hosts different worker threads. All the threads do not necessary point to the same database. Currently I am able to set the connection string on a thread by thread bases. I have a DevForce model and am trying to achieve the same thing, but because it inherits from EntityManager and EntityManager does not take a EntityConnection as part of the constructor I am struggling to figure out how I do this.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum