Code set of PMP connection string prior to EcoSpace instance activate.
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Code set of PMP connection string prior to... Expand / Collapse
Author
Message
Posted 2008-10-07 05:47:35
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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

Post #534
Posted 2008-10-08 03:17:34
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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.
Post #537
Posted 2008-10-10 11:18:23
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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]
Post #564
Posted 2008-10-10 12:15:23
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 2011-07-14 17:05:00
Posts: 290, Visits: 2 617
I set it in the constructor of the PMP. Take a look here:
http://mrpmorris.blogspot.com/2008/10/eco-winforms-aspnet-and-wcf.html

Pete


====
Pete
Post #565
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom, PeterMorris

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 11:58

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0,188. 8 queries. Compression Disabled.