Contents tagged with DataContract

  • WCF + Entity Framework + JSON = Tears

    Well, maybe not tears, but it probably won't work as smoothly as you want it to right out of the box. I had my nice little WCF with JSON responses all going nicely, with some test data, and that was all sweet, but the second I tried to return an EF object, WCF cried miserable, miserable tears and didn't return anything. What's the deal? It turns out that the JSON serializer doesn't like the " … more

  • 1