Print Page | Close Window

How to disable DevForce integration in projects?

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=3083
Printed Date: 10-Oct-2025 at 12:54pm


Topic: How to disable DevForce integration in projects?
Posted By: katit
Subject: How to disable DevForce integration in projects?
Date Posted: 06-Nov-2011 at 10:39am
I'm using DevForce in one project but not in others. Now, every time I edit plain Entity Model - DevForce kicks in, generates classes, etc.
 
I have to (every time!):
1. Set DevForce enabled to false
2. Save model
3. Remove "stock" genereated model (because I use my own templates)
4. Delete "Custom Tool" property from entity model.
5. Delete DevForce references from project
 
And next time I modify model - I have to do all that again. Any way to stop it?
 
EDIT: I'm not so sure about every time. Seems like after I disable DevForce integration it works permanently but it did kick it back on somehow in number of occasions.



Replies:
Posted By: DenisK
Date Posted: 07-Nov-2011 at 2:13pm
Hi katit;

Disabling the DevForce Enabled property on the designer should do the job. As far as I know, this property can't be set anywhere else other than on the designer.

There's one other possibility that I can think of. When you set this property to false, it'll add the following xml annotation to the .edmx file under the CSDL content.

 <edmx:ConceptualModels>
      <Schema Namespace="NorthwindIBModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm" xmlns:ib10="http://www.ideablade.com/edm/2010">
        <EntityContainer Name="NorthwindIBEntitityManager" annotation:LazyLoadingEnabled="true" ib10:EntityManagerName="DomainModelEntityManager" ib10:DevForceEnabled="false">

if the annotation is not there, by default, DevForce Enabled is set to true.

If it happens again in the future, perhaps you can see if this setting somehow got "erased" by opening the edmx in xml format.



Print Page | Close Window