datacontractserializer
How to avoid clashes with existing entity ID's when deserializing and importing EF entities?
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.[详细]
2023-02-09 20:18 分类:问答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 分类:问答Connected entities not serialized with DataContractSerializer
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.[详细]
2023-02-05 19:31 分类:问答DataContractSerializer vs BinaryFormatter performance
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[详细]
2023-02-05 09:25 分类:问答WCF DataContract GetCustomDataToExport
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[详细]
2023-02-04 00:47 分类:问答How can I use DataContractSerializer to deserialize from a single node of an XMLDocument?
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.[详细]
2023-02-03 16:48 分类:问答Datacontractserializer doesn't overwrite all data
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[详细]
2023-02-03 12:08 分类:问答WCF DataContract requires Serialization?
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)?[详细]
2023-01-31 11:52 分类:问答WCF DataContract deserialization issue with empty values
Say i have something like: [DataContract(Namespace=\"http://bla.bla\")] public class MyClass { [DataMember] public long ResponseCod开发者_开发百科e { get; set; }[详细]
2023-01-30 22:18 分类:问答DataContract serialization of an inherited type into a base type
I\'m trying to serialize class B as an instance of ita base class A. The DataContractSerializer won\'t allow me to do that.[详细]
2023-01-30 12:12 分类:问答