New Posts New Posts RSS Feed: Question about choosing best approach
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Question about choosing best approach

 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: Question about choosing best approach
    Posted: 17-Nov-2011 at 2:26am
Hello,
I've spent last week working on a mockup project with DevForce  Application Framework , Caliburn and so on....
Now that I've started managing stuffs I need your help for choosing what's best...

I'm to develop a WPF application that works most with complex type (imported from Stored Procedure), for now I've attached my own edmx in the WPF project and everything works fine...

I don't like at all the fact that each client have access to the DB (even if I put the edmx in a separate dll, it'll live inproc and run on the client).. I've tried to use a webserver, but in that way I've to

  1. Create a svc for each macro area I wish to export
  2. Add a service reference to the web server on the WPF client, but in that way I've a strong reference to the server... doesn't this break up on modularity?
  3. What if I create 2 different modules that will be loaded on demand, should they will reside on the webserver?

Thanks

Paolo

Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 18-Nov-2011 at 5:35pm
Hi Paolo,

I'm not sure I completely understand your scenario, but I don't think you need to define any custom services. If you start with the DevForce n-Tier WPF Application Template in Visual Studio, all the service references for DevForce are created automatically. You can call the stored procedures from the client and DevForce will route the call to the server and return the results back to you automatically.

If you need to invoke a custom method on the server, you can do this with the Remote Server Method Call:

Placing the dynamically loaded dlls on the webserver should be ok, but I'll need to check with our architects on the best practices for this.

For others reading this thread, our dynamic loading documentation for Silverlight is here (http://drc.ideablade.com/xwiki/bin/view/Documentation/on-demand-discovery), but the code for WPF will be different.

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: 22-Nov-2011 at 11:52pm
Hello ting,
with your help and the thread I posted on http://devforcecaliburn.codeplex.com/discussions/279368 I was able to succede in ...
thanks a lot
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 28-Nov-2011 at 4:16pm
Cool. Glad you were able to put everything together. Thanks for the update!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down