Print Page | Close Window

How to split to modules?

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=3209
Printed Date: 13-May-2026 at 1:59pm


Topic: How to split to modules?
Posted By: pponzano
Subject: How to split to modules?
Date Posted: 11-Jan-2012 at 6:32am
Hello,
if I want to split my application into modules using DAF and I've some classes that're shared with the modules how can I mantain scalability ? have also I to create for each module an edmx? in order to deploy a single part without redeploying the whole application?

Thanks
Paolo



Replies:
Posted By: mgood
Date Posted: 12-Jan-2012 at 12:20pm
Paolo,
Is this a Silverlight application? If so you would break your application into multiple XAP files and dynamically load those at runtime as needed. DAF provides the functionality to dynamically load a XAP file via ICompositionCatalogService. Each XAP file can contain it's own EDMX and anything else that's needed for the module.
 
Here's an example demonstrating how to do it. This example also demonstrates how to send messages between applications, even if the recipient application is not loaded yet. It may have some german comments left over, because I originally created this sample for one of my customers in Germany.
 
https://skydrive.live.com/redir.aspx?cid=b37183c914f0fbe8&resid=B37183C914F0FBE8!200&parid=B37183C914F0FBE8!192&authkey=!ABpKKXfDjpEgo84 - https://skydrive.live.com/redir.aspx?cid=b37183c914f0fbe8&resid=B37183C914F0FBE8!200&parid=B37183C914F0FBE8!192&authkey=!ABpKKXfDjpEgo84
 


Posted By: pponzano
Date Posted: 12-Jan-2012 at 11:08pm
Hello Marcel,
no it's a WPF n-tier application.....I take a look at your code, I think I'll need to create a .Client/.Server foreach macro-area I've am I right?
 
Thanks


Posted By: mgood
Date Posted: 13-Jan-2012 at 7:10am
Yes, the closest approach to what multiple XAPs provide is to develop multiple independent exe's.


Posted By: pponzano
Date Posted: 13-Jan-2012 at 7:23am
Marcel,
what if I produce class library, can I composite with MEF?



Print Page | Close Window