PC Review


Reply
Thread Tools Rate Thread

Data Services $expand issues with custom context

 
 
Lars-Erik
Guest
Posts: n/a
 
      14th Oct 2008
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
 
Reply With Quote
 
 
 
 
Lars-Erik
Guest
Posts: n/a
 
      14th Oct 2008
On 14 Okt, 15:30, Lars-Erik <l...@markedspartner.no> wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple services, separate service installers, starting only one in services panel, but all services run sdstraub@gmail.com Microsoft VB .NET 2 29th Aug 2006 09:43 AM
Context.Items vs Context.Handler (passing values between pages) VS_NET_DEV Microsoft ASP .NET 2 25th May 2004 02:16 PM
Context for context menu Al Windows XP Internet Explorer 1 20th May 2004 01:41 AM
Context menus and treeviews, suggestions for a NODE sensitive context menu Eric Newton Microsoft Dot NET Framework Forms 4 13th Jan 2004 10:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.