datacontract
Adding a DataMember to an existing DataContract in WCF
I would like to add a DataMember to one of my DataContracts. I would like to know how existing servers and clients will behave in the presence of a new DataMember if one of the parties isn\'t updated.[详细]
2023-02-23 09:35 分类:问答Custom Element Names using the DataContractSerializer on a List of primitives
I\'m interested about the best way to go about setting custom element names when using List of primitives with the DataContractSerializer.Let\'s say I have the following class which contains a List of[详细]
2023-02-22 00:17 分类:问答Using collections/lists within WCF DataContracts
I don\'t know very much of WCF... I want to do a clean job to serve entities on client side using DataContracts.Imagine two DataContracts \"System\" and \"Building\": \"System\" may have many \"Build[详细]
2023-02-20 10:09 分类:问答DataContractSerializer on augmented list type
I am having trouble using DataContracts to deserialize where a list wrapper is augmented with additional data.The important part of the XML is pasted here, with a full link to the XSD and documentatio[详细]
2023-02-19 21:05 分类:问答Problem passing object between WCF and ASMX using DataContracts
I\'m trying to use ASMX/WCF to pass objects between sites (public / private).I can get the serialized object from my private ASMX service to my public WCF service, but I can\'t deserialize the object.[详细]
2023-02-17 04:00 分类:问答Is there an attribute that will implicitly assume all members of a class that has a DataContract is a datamember?
Instead of having to specify [DataMember] for every member, is there a sort of attribute that can just assume it is a datamember?[详细]
2023-02-15 00:12 分类:问答Runtime add DataContract and DataMember to Dynamic Class created using .Net Reflection
I have used .Net Reflection. Emit to create Dynamic Class and its fields. Now when I use Generic List of this dynamic class object in Silverlight enabled WCF service it is giving me an error on the re[详细]
2023-02-08 10:07 分类:问答Is there a xsd file for "http://schemas.microsoft.com/2003/10/Serialization/" namespace?
I want to create / infer schema for data-contract serialized classes. When I use [DataContract(IsReference = true)] attribute the serializer is injecting attributes z:Id=\"i2\" and z:Ref=\"i2\" to r[详细]
2023-02-07 14:23 分类:问答WCF REST service not returning DataContract object
I have a simple WCF service defined by the following ServiceContract: [ServiceContract] public interface IInventoryService[详细]
2023-02-05 04:57 分类:问答TypeBuilder with DataContract and DataMembers
I\'m generating a dynamic type on the fly with a DataContract attribute and DataMembers. I\'ve verified the type is getting generated correctly with DataContract and DataMember attributes using reflec[详细]
2023-02-05 01:03 分类:问答