When should I choose to use WCF and WCF data services

Suppose that data will never be requested directly. AKA, there will always be some sort of filtering logic and / or business logic that should happen.

When is there a good reason to use data services outside of ajax / js?

Please do not post this page http://msdn.microsoft.com/en-us/data/bb931106.aspx

+3
source share
1 answer

Essentially speaking, which abstraction layer I should use, WCF Data Services is built on top of WCF and aims to simplify the process of creating a REST-based service that spends on anything on the Internet. It takes a lot of plumbing and configuration needed for this with the standard WCF service. The query function is another big plus and something that is hard to get with standard WCF.

Shortly speaking:

  • If you want to quickly create a weakly typed service that wraps an existing data model and allows you to request support, provide WCF data services.
  • If you want full control of a service contract or the flexibility of providing a service using any protocol, stick to a simple old WCF.
+5
source

Source: https://habr.com/ru/post/1741088/


All Articles