SIlverlight and WCF RIA
I have an application where I present the data to the users by using Silverlight 4 and 开发者_如何学GoWCF RIA Services. In this application I have also a module (console app) which is responsible to store in the DB some flat files (xml files).
My question is: According to the best practices which one of these two options is the best?
- Reuse the WCF RIA Services also for the Console App to store the flat files in DB.
- Create others WCF Services specific for the Console App to store the flat files in DB (with ServiceContract).
Any idea? Or other options? THANKS!
All I can say is it is always a best practice to reuse any code that can be reused
. I don't see why you would want to create a whole new service layer for another application? Being reusable (over multiple applications/platforms) is the point of web services.
精彩评论