Print Page | Close Window

[ANSWERED] Reusing the Model Project

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=586
Printed Date: 11-Jun-2026 at 12:22pm


Topic: [ANSWERED] Reusing the Model Project
Posted By: Linguinut
Subject: [ANSWERED] Reusing the Model Project
Date Posted: 06-Dec-2007 at 9:16am
Can I transplant the Model project associated with the CAB/DF application into another application solution?  Will it work without a major overhaul?



Replies:
Posted By: Bill Jensen
Date Posted: 06-Dec-2007 at 10:54am
I don't see why not.  We have tried to keep the model project free of CAB dependencies.  It should depend only on DevForce.
 
Bill J.


Posted By: Linguinut
Date Posted: 06-Dec-2007 at 4:38pm
Thank you, Bill.  I appreciate your response.


Posted By: Linguinut
Date Posted: 08-Dec-2007 at 6:37am
Bill, is the IdeaBlade.Common.EntityModel part of DevForce?  I do not see it in my installation; however, I am not using the most recent build, either.  Perhaps it is included in the most recent update of DevForce.  If so, then everything should be ok; however, if not, then the dependency within the model project does make it unusable without an overhaul.  For example, the BaseEntity inherits from IdeaBlade.Common.EntityModel.CommonEntity.  The BaseEntity is the entity from which nearly all of my business object inherit.  If I simply add that reference to my project will that be all I need?


Posted By: Linguinut
Date Posted: 08-Dec-2007 at 6:42am
I copied the assembly from the CAB project to the IdeaBlade installation folder.  From the new project, I rebuilt the Model project and received no errors/warnings.  It looks like that is all that I needed to do.


Posted By: Bill Jensen
Date Posted: 14-Dec-2007 at 2:50pm
Yeah, the IdeaBlade.Common.EntityModel occupies a sort of limbo between DevForce and IdeaBlade.CAB/Cabana.  It's necessary for IdeaBlade.CAB-based applications, but doesn't depend on any CAB or IdeaBlade.CAB stuff, so it can be moved to a straight DevForce application.
 
If your DevForce application doesn't use CAB, you could try changing your BaseEntity in that model to inherit directly from Entity.  I've never tried this, so I can't guarantee that it would work.
 
Bill J.



Print Page | Close Window