I have a WCF service in which I have some data contracts. I use factory web services software which uses a constructor to create all messages and data and other contracts and creates them as partial classes. When the code is regenerated, the classes are recreated.
using WcfSerialization = global::System.Runtime.Serialization;
[WcfSerialization::CollectionDataContract(Namespace = "urn:CAEService.DataContracts", ItemName = "SecurityItemCollection")]
public partial class SecurityItemCollection : System.Collections.Generic.List<SecurityItem>
{
}
A data contract is a generic list of a user class that works fine. However, now I want to add a property to this class, so I added this partial class to the same namespace:
public partial class SecurityItemCollection
{
public int TotalRecords { get; set; }
}
, , , , , . - , ?
EDIT:
, . , , , DataContract CollectionDataContract. - ? ? - . , refernce , , colelction .