Re: Framework EOModels
Re: Framework EOModels
- Subject: Re: Framework EOModels
- From: Paul Hoadley <email@hidden>
- Date: Thu, 23 Apr 2015 07:48:11 +0930
Hi Gino,On 23 Apr 2015, at 6:36 am, Gino Pacitti < email@hidden> wrote: One last question though and hopefully I have understood the previous comments…
If the framework has an empty connection dictionary and it is set via the Properties file of the App using it i.e.. dbConnectURLGLOBAL=<some URL> dbConnectUserGLOBAL=<some user> dbConnectPasswordGLOBAL=<some password>
What happens if you also include another Model in your app and that uses a different connection dictionary and accesses a different db? How do you get them to know which dictionary is for which?
You can specify connection parameters on a per-model basis. Take a look at the docs for ERXConfigurationManager:
Towards the bottom it shows per-model alternative property syntax to use instead of the *GLOBAL properties. (It's not something I've used before, though, and the docs seem to suggest there are cross-database differences—can anyone confirm this? You might need to experiment a bit.)
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden