views:

9

answers:

0

Hi All, I have an object I'd like to send as JSON (As you know - JSON is often used when you want to send minimal data) The Object has one level of inheritence. (Page > PageSubtype) (2 tables - same PK)

I can send the 30 properties of the object - fine.

The issue is that ADO.NET sends EVERY link to EVERY table the SuperType is linked to.

Like this:

<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ABPage" type="application/atom+xml;type=feed" title="ABPage" href="ABApp(173)/ABPage" />

About 40 tables & 40 links.

The End result?

  • 500 charactors of properties i want.
  • 4500 charactors of links i don't want.

Over the wire. Every time.

ANY SETTING TO TURN OFF SENDING LINKS/RELATIONS WITH THE OUTPUT? THX