Print Page | Close Window

How to change the Default Manager

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1747
Printed Date: 03-May-2025 at 8:11am


Topic: How to change the Default Manager
Posted By: DavidKozikowski
Subject: How to change the Default Manager
Date Posted: 23-Apr-2010 at 11:21am

I'm using 2 entity managers in my application. When I try to do a saveChanges() on the second one I get the below error.

 

+  base {"Type conflict:  the DefaultManager is currently of type PTXARCEntityManager"} System.Exception {IdeaBlade.Core.IdeaBladeException}

 

 

Can I change the default manager to the right Type?

 

Thought I saw this in the help docs somewhere.

 

P.S. Is there a DevForce Compiled help file to search?





Replies:
Posted By: ting
Date Posted: 26-Apr-2010 at 4:37pm
Hi David,
 
You can set the DefaultManager using the statement:
EntityManager.DefaultManager = [whatever instance you want]
 
We're working on getting all the documentation in html format on the web and searching it using a google site search.
 



Print Page | Close Window