locked
How to create WCF project in this scenario RRS feed

  • Question

  • User-1243246357 posted

    Hello,
    I have to create a service oriented architecture using WCF. I am new to WCF. I tried it by adding a new WCF library.
    Now, I see that it has created an interface for ServiceContract and an Implementataion Class for this ServiceContract.
    But, in my application there are around 25 tables as of now. And I want to create separate ServiceContract interfaces and Implementataion Classes for all these tables. Questoin I am having is, do I need to add .svc file for all these?

    Friday, October 18, 2013 8:53 AM

Answers

  • User-488622176 posted

    If you want separate services, WCF requires separate .svc files.

    However, I do not think it is a good idea to make one service per data table. This very rarely makes sense, en in many cases has a negative impact on the architecture & application performance. 

    Did you consider WCF Data Services (http://msdn.microsoft.com/en-us/library/cc668792.aspx)) ? 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 18, 2013 9:29 AM