I have an ASP.NET 4 web app that is using the Entity Framework to hold, amongst other things, a hierarchical structure of items that is used for features such as navigation.
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
I am using LINQ-to-SQL and I have the Serialization Mode set to Unidirectional. I have two entity classes, Country and City, with a one-to-many relationship.
I was going through articles to understand more about the datacontractserializer and binaryformatter serializers. Based on the reading done so far I was under the impression that binaryformatter shoul
I\'m trying to get the default behavior for a client referencing my WCF WSDL to set IsReference to true on the imported DataContracts. It looks like I should be able to use an IDataContractSurrogate w
The开发者_如何学JAVA readers that DataContractSerializer uses in ReadObject seem to be stream-based.I already have an XMLDocument, and I would like to deserialize one part of that document.
I\'ve noticed that if I persist an object back into file using a Datacontr开发者_开发问答actserializer, if the length of the new xml is shorter than the xml originally present in the file the remnants
A class that has the [DataContract] attribute, is it not automatically serialized? If not, is it a requirement to use the [Serializable] attribute (or inherit from ISerialize)?
Say i have something like: [DataContract(Namespace=\"http://bla.bla\")] public class MyClass { [DataMember] public long ResponseCod开发者_开发百科e { get; set; }
I\'m trying to serialize class B as an instance of ita base class A. The DataContractSerializer won\'t allow me to do that.