Enable Serialization On Linq Entities

Peace be upon you,

To do this in the O/R Designer you can select the white space of the designer and view the DataContext properties.  Set the property called Serialization Mode to Unidirectional:

Linq Serialization Mode Property

Enabling unidirectional serialization adds the necessaryDataContract and DataMember attributes to the generated entities and properties

Advertisements