Your SlideShare is downloading. ×
WCF Data Contracts
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

WCF Data Contracts

1,541
views

Published on

WCF Data Contracts - Kolkata NET UG Presentation

WCF Data Contracts - Kolkata NET UG Presentation

Published in: Technology, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,541
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
39
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. WCF Data Transfer & SerializationPart1: Data Contracts
    Sankarsan Bose
    2nd November 2009
  • 2. Agenda
    • Data Transfer In Service
    • 3. Serializers in WCF
    • 4. Data Contracts
    • 5. Known Types
    • 6. Serializing Collections
  • Data Transfer In Service
    Serialize
    Deserialize
    Client
    Host Process
    Proxy
    Service
    Deserialize
    Serialize
  • 7. Serializers In WCF
  • 8. Data Contract
    Will this class be properly serialized in WCF by DataContractSerializer ??
    public sealed class DataContractSerializer : XmlObjectSerializer
    DataContractAttribute is not mandatory
  • 9. Data Contract
    Default Serialization ; No fine grained control
  • 10. Data Contract
    Custom Namespace
    Serialized XML
  • 11. Data Contract
    Data Contract Properties
  • 12. Data Contract
    Demo
  • 13. Data Member
    Data Member Properties
  • 14. Data Member
    Demo
  • 15. Known Type
    Base Type is used method signature
    Here Serializer needs additional data about the concrete class
    This is done by KnownType attribute
  • 16. Known Type
    Demo
  • 17. Serializing Collections
  • 18. Serializing Collections
    Demo
  • 19. Thank You

×