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
this.Context.Cache and Web Services: value not persisted between two subsequent calls. BLUE Microsoft C# .NET 2 13th Jun 2007 05:27 PM
Expand default context menu of a textbox Konrad Bernhard Microsoft Dot NET Framework Forms 0 9th Jan 2004 08:34 PM
RE: Services failing to start with domain security context stevta [MSFT] Microsoft Windows 2000 Group Policy 0 30th Sep 2003 02:21 PM
Services failing to start with domain security context J. Eric Josephson Microsoft Windows 2000 Active Directory 0 16th Sep 2003 03:24 PM
Services failing to start with domain security context J. Eric Josepshon Microsoft Windows 2000 Security 0 16th Sep 2003 03:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:23 AM.