|
|
|
Forum Member
      
Group: Forum Members
Last Login: 2011-12-12 23:38:00
Posts: 37,
Visits: 168
|
|
Hi All,
I have created an EcoIV winforms solution.
The EcoSpace project contains an EcoSpace class and a PersistenceMapperProvider (PMP) class.
I wish to use code to set the connection string in the PMP connection component prior to activating the EcoSpace.
I cannot find a way to access the PMP class instance from my EcoSpace instance without a call to open the connection occuring.
Is it possible to get access to the PMP instance associated with the EcoSpace without triggering connection opening etc.
Thanks
AndyB
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 2011-12-12 23:38:00
Posts: 37,
Visits: 168
|
|
OK
I found the singleton Instance property of the PMP class.
Andy.
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-11-30 12:17:13
Posts: 1 230,
Visits: 1 382
|
|
Couldn't you do it in the constructor of the PMP instead? does it have to be done "just before" the activation of the EcoSpace?
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2011-07-14 17:05:00
Posts: 290,
Visits: 2 617
|
|
|
|
|