New Posts New Posts RSS Feed: How to split to modules?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

How to split to modules?

 Post Reply Post Reply
Author
pponzano View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Apr-2011
Location: Italy
Posts: 165
Post Options Post Options   Quote pponzano Quote  Post ReplyReply Direct Link To This Post Topic: How to split to modules?
    Posted: 13-Jan-2012 at 7:23am
Marcel,
what if I produce class library, can I composite with MEF?
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post Posted: 13-Jan-2012 at 7:10am
Yes, the closest approach to what multiple XAPs provide is to develop multiple independent exe's.
Back to Top
pponzano View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Apr-2011
Location: Italy
Posts: 165
Post Options Post Options   Quote pponzano Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post 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.
 
 
Back to Top
pponzano View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Apr-2011
Location: Italy
Posts: 165
Post Options Post Options   Quote pponzano Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down