I\'m working on an Entity Framework project. I want to serialize a bunch of entity class instances. I\'ve bound these together into a container class:
public
An easier method is to modify your model T4 template (.tt) to append [JsonIgnore] attributes to your navigation properties, which will just leave the primitive types as serializable.
[JsonIgnore]