tägliches Archiv: 2. Februar 2017

Serialize an Entity Framework entity to JSON (Newtonsoft.Json)

Everytime when it comes to serializing an entity the navigation properties may lead to circular references and crashing the serialization process. Of course there’re configuration settings that can be adjusted but I wanted a solution for any developer consuming these entities should be able to json-serialize them. Well there’re quite a lot arguments against serializing and using entities in a web service but also at...

Read More