Entity Framework and the XmlIgnoreAttribute
- by Mikey Cee
Say you have a one to one relationship in your entity model. The code generator will decorate it with the following attributes:
[global::System.Xml.Serialization.XmlIgnoreAttribute()]
[global::System.Xml.Serialization.SoapIgnoreAttribute()]
public RelatedObject Relationship { get {...} set {...} }
I want to serialize my parent object together…