Adding a new member to existing DataContract.
Round Tripping
In this article we will explore New Member scenarios Adding a New Member to existing DataContractThis is most common changes we do to give new version to DataContract.For example we have a DataContract through which we are exposing Product custom class to the client Product.cs
[DataContract]
publicclassProduct
{
[DataMember(Order = 1)]
publicstringProductNumber;
[DataMember(Order = 2)]
publicstringProductName;
[DataMember(Order = 3)]
publicstringProductPrice;
}Read more: Beyond Relational
0 comments:
Post a Comment