Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

Data contract

Is data contract absent in .NET 2.0 and now available in .NET 3.0? How important is it? Thanks.
0
ksfok
Asked:
ksfok
  • 3
  • 2
1 Solution
 
surajgupthaCommented:
You would need to use the data contrat only if you are using the windows communication foundation. And it is used to mark the classes for serialization.

It is very similar to marking the classes as [Serializable]

IT is very very imporatant if you use WCF.
0
 
ksfokAuthor Commented:
When and show is  WCF used? Is it indispensable?
0
 
surajgupthaCommented:
WCF is just a way in which SOA is implemented in .net 3.0
It is not indispensible. you can still go ahead and use web services and remoting from .net 2.0 to achieve exactly what you want. But since WCF is the next generation of SOA it is a good to use technology. It has its own advantages
0
 
ksfokAuthor Commented:
What advantages do we gain from WCF over .NET 2.0?
Thanks.
0
 
surajgupthaCommented:
With .Net 2.0 there existed different mechanisms to communicate .Net Web Services, Remoting, Enterprise Services, etc. And anyone starting a project will have to make a technology decision upfront to decide what they wanted to go ahead with. Lets assume someone started a project with web services and if they realized mid way during the project that wud have wanted Binary communication, the change would involve changing the entire plumbing of the project.

With WCF you can expose the same logic as a web service or a Binary service like Remoting, implement queues, etc.

What CLR did to lanugages is what WCF has done to microsoft communication technologies
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now