• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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