Data Services $expand issues with custom context

  • Thread starter Thread starter Lars-Erik
  • Start date Start date
L

Lars-Erik

Hi!

I've wrapped a LINQ to SQL model twice, and using it in an ADO Data
Services service gives me a lot of trouble trying to expand the
associations. All I get is a <link rel="self" href="..."/> entry.
I've tried to add numerous [IgnoreProperties] attributes to make the
objects as slim as possible when debugging, but I can't figure out why
it don't work. LoadProperty works as expected, so it obviously
understands the associations.

Anyone have any ideas why this is?

L-E
 
Hi!

I've wrapped a LINQ to SQL model twice, and using it in an ADO Data
Services service gives me a lot of trouble trying to expand the
associations. All I get is a <link rel="self" href="..."/> entry.
I've tried to add numerous [IgnoreProperties] attributes to make the
objects as slim as possible when debugging, but I can't figure out why
it don't work. LoadProperty works as expected, so it obviously
understands the associations.

Anyone have any ideas why this is?

L-E

Man I feel stupid. :P I've been spending two days finding my own
architectural grip where the wrapped context I use presets a few
dataloadoptions, not including the one I want now. An eager-load
dataload option on the innermost context, et voilá - I'm there! :)

L-E
 
Back
Top