<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hosting and Streaming</title><link>http://forums.silverlight.net/forums/15.aspx</link><description>Discussions about hosting and streaming Silverlight applications 

 
</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/236359.aspx</link><pubDate>Mon, 22 Jun 2009 16:03:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:236359</guid><dc:creator>Hiisu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/236359.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=236359</wfw:commentRss><description>&lt;p&gt;Hi all, &lt;/p&gt;&lt;p&gt;Daniel, were you able to resolve your issue?&amp;nbsp; I believe that I am in
the same situation and have followed the prescribed steps. My application models an expense reporting system and is set
up as follows:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;LINQ to SQL classes are used to generate User, ExpenseReport, and ExpenseItem classes.&amp;nbsp; Relationships have been defined such that a User has an ExpenseReport EntitySet named MyReports.&amp;nbsp; Every ExpenseReport also has an ExpenseItems EntitySet that provides line item details.&amp;nbsp; It is desirable to retrieve all of the ExpenseItems at the same time that the ExpenseReports are retrieved.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;A WCF service exposes a ServiceContract for retrieving a list of ExpenseReport objects.&lt;/li&gt;&lt;li&gt;DeferredLoadingEnabled = false and DataLoadOptions are used to pre-fetch the ExpenseItems while retrieving a Customer&amp;#39;s ExpenseReports using eager loading.&lt;/li&gt;&lt;li&gt;The DBML Serialization Mode is configured for Unidirectional.&lt;/li&gt;&lt;li&gt;All LINQ to SQL types generated in ExpenseDB.designer.cs are properly decorated with either the [DataContract] or [DataMember] attribute by the designer.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The operation contract looks like:&lt;/p&gt;&lt;p&gt;[OperationContract]&lt;br /&gt;List&amp;lt;ExpenseReport&amp;gt; GetExpenseReports(int userID); &lt;br /&gt;&lt;/p&gt;&lt;p&gt;It
seems that all of the desired data is fetched with the single query, but by the time data has been returned through
the WCF OperationContract, the pre-fetched data in ExpenseItems is lost.&amp;nbsp; Here&amp;#39;s what happens
on the server:&lt;/p&gt;&lt;p&gt;&amp;nbsp; List&amp;lt;ExpenseReport&amp;gt; GetReports(int userID)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;ExpenseReport&amp;gt; result = null;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (ExpenseDBDataContext dc = new ExpenseDBDataContext())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc.DeferredLoadingEnabled = false;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataLoadOptions dlo = new DataLoadOptions();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dlo.LoadWith&amp;lt;ExpenseReport&amp;gt;(report =&amp;gt; report.ExpenseItems);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dc.LoadOptions = dlo;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User user = dc.Users.Where(x =&amp;gt; x.UserID == userID).Single();&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //result contains the expected ExpenseReport items, and result[0].ExpenseItems contains two fully populated items.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = user.MyReports.ToList();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;The caller on the client receives the result here:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; CachedReports = server.GetExpenseReports(userID);&lt;/p&gt;&lt;p&gt;But CachedReports[0].ExpenseItems is now null.&amp;nbsp; Do I have something configured incorrectly with the LINQ to SQL designer, The WCF service contract, or the client that would result in only the ExpenseReport items being serialized?&amp;nbsp; Is there some disconnect between the ORM and the WCF OperationContract that does not preserve data beyond the parent class ExpenseReport despite full serialization being configured?&amp;nbsp; Do I need to explicitly retrieve the ExpenseItem data, and isn&amp;#39;t this what LoadWith() is  doing? &lt;/p&gt;&lt;p&gt;Thanks in advance for the much appreciated feedback,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Heath &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/171831.aspx</link><pubDate>Mon, 09 Feb 2009 15:57:57 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:171831</guid><dc:creator>radarjr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/171831.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=171831</wfw:commentRss><description>&lt;p&gt;Nevermind, I just found that Devart dropped support for LoadOptions.&amp;nbsp; Back to using MS.&amp;nbsp; Thanks for your help though.&lt;/p&gt;</description></item><item><title>Re: WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/171075.aspx</link><pubDate>Fri, 06 Feb 2009 17:26:00 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:171075</guid><dc:creator>radarjr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/171075.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=171075</wfw:commentRss><description>&lt;p&gt;Thank you for your assistance.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Okay.&amp;nbsp; Right now, dbContext does not connect to my DB, cg does.&amp;nbsp; And here comes the issue.&amp;nbsp; CG is of&amp;nbsp;CGPortal class that implements devart.data.linq.datacontext; so, what I thought I could do is:&amp;nbsp;&amp;nbsp; cg.loadoptions&amp;nbsp;&amp;nbsp; but loadoptions doesn&amp;#39;t exist for cg.&amp;nbsp; Don&amp;#39;t I inherently have access to members of implemented classes?&amp;nbsp; If I directly say:&amp;nbsp; var dbContex = new Devart.Data.Linq.DataContext(&amp;quot;&amp;quot;), I have access dbContext.LoadOptions, but dbContext is not connected to my DB; therefore can&amp;#39;t have dbContext.pois&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So, I tried:&lt;/p&gt;
&lt;p&gt;Devart.Data.Linq.DataContext dbContext = new CGPortal();&amp;nbsp;&amp;nbsp; //No table access or loadOptions&lt;/p&gt;
&lt;p&gt;...which accepts a null connection string and still connects.&amp;nbsp; I thought&amp;nbsp;that would give me access to my&amp;nbsp;tables and LoadOptions, but that gives me neither.&amp;nbsp; If I tried:&lt;/p&gt;
&lt;p&gt;System.Data.Linq.DataContext dbContext = new CGPortal();&amp;nbsp;&amp;nbsp; //LoadOptions, but no table access&lt;/p&gt;
&lt;p&gt;...provides LoadOptions, but no table access.&amp;nbsp; I think if I could somehow access members of the implemented devart.data.linq.datacontext this would all be behind me.&amp;nbsp; Am I missing something?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you again&lt;/p&gt;</description></item><item><title>Re: WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/170817.aspx</link><pubDate>Fri, 06 Feb 2009 05:28:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:170817</guid><dc:creator>amyo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/170817.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=170817</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;radarjr:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;var dbContext = &lt;span class="kwd"&gt;new&lt;/span&gt; System.Data.Linq.DataContext(&lt;span class="st"&gt;&amp;quot;&amp;quot;&lt;/span&gt;); var orderLoadOptions = &lt;span class="kwd"&gt;new&lt;/span&gt; System.Data.Linq.DataLoadOptions(); orderLoadOptions.LoadWith(p =&amp;gt; p.Description); dbContext.LoadOptions = orderLoadOptions;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;This is ok.&lt;/p&gt;
&lt;p&gt;Now you have to use dbContext DataContext for your query.&lt;/p&gt;
&lt;p&gt;Now it will look like: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var points = from p &lt;span class="kwd"&gt;in&lt;/span&gt; &lt;strong&gt;dbContext&lt;/strong&gt;.pois&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where p.CategoryID == ..&lt;/p&gt;&amp;nbsp;</description></item><item><title>Re: WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/170713.aspx</link><pubDate>Thu, 05 Feb 2009 23:16:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:170713</guid><dc:creator>radarjr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/170713.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=170713</wfw:commentRss><description>&lt;p&gt;I have a very similar issue to that posted above.&amp;nbsp; I also have a parent-child association using WCF and Linq to SQL.&amp;nbsp; When I query the database on the server side, in debug mode I can see the child table public members with a public parent member (entity ref I assume), and it&amp;#39;s associated public members beneath it.&amp;nbsp; I need the members from both child and parent, and all that&amp;#39;s returned to the client is child members.&amp;nbsp; I have added the solution you&amp;nbsp;suggested, but there&amp;#39;s still no parent data on client-side.&amp;nbsp; I&amp;#39;m not sure if your solution is what I need&amp;nbsp;or if the one here is &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.experts-exchange.com/Programming/Languages/.NET/LINQ/Q_23781859.html"&gt;http://www.experts-exchange.com/Programming/Languages/.NET/LINQ/Q_23781859.html&lt;/a&gt;&amp;nbsp;; however, the one on the link along with the expert&amp;nbsp;comment following it&amp;nbsp;seems more like what I&amp;#39;m trying to get.&amp;nbsp; I need to select all the data from the child table, and one item (description)&amp;nbsp;from the parent table which corresponds to the child row (like childID = parentID).&amp;nbsp; Can you help me get oriented.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;CGPortalData cg = GetDB();
            cg.DeferredLoadingEnabled = &lt;span class="kwd"&gt;false&lt;/span&gt;;

            var dbContext = &lt;span class="kwd"&gt;new&lt;/span&gt; System.Data.Linq.DataContext(&lt;span class="st"&gt;&amp;quot;&amp;quot;&lt;/span&gt;);
            var orderLoadOptions = &lt;span class="kwd"&gt;new&lt;/span&gt; System.Data.Linq.DataLoadOptions();
            orderLoadOptions.LoadWith(p =&amp;gt; p.Description);
            dbContext.LoadOptions = orderLoadOptions;


            var points = from p &lt;span class="kwd"&gt;in&lt;/span&gt; cg.pois
                         where p.CategoryID == cat
                         from pts &lt;span class="kwd"&gt;in&lt;/span&gt; p.points
                         where pts.ObjectID == p.ID
                         select pts;

            point[] rv = points.ToArray();

            &lt;span class="kwd"&gt;return&lt;/span&gt; rv;&lt;/pre&gt;&amp;nbsp;&amp;nbsp; In the above, I need all the pts members and pts.poi.description.&amp;nbsp; I hope this makes sense, because I&amp;#39;m confused. 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/168056.aspx</link><pubDate>Fri, 30 Jan 2009 15:38:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:168056</guid><dc:creator>amyo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/168056.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=168056</wfw:commentRss><description>&lt;p&gt;If you are using LINQ to SQL entity object to transfer via WCF.&lt;/p&gt;
&lt;p&gt;Please check my solution (change default &lt;strong&gt;DataLoadOptions&lt;/strong&gt;. before executing)&lt;/p&gt;</description></item><item><title>Re: WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/168046.aspx</link><pubDate>Fri, 30 Jan 2009 15:13:06 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:168046</guid><dc:creator>dlusignan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/168046.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=168046</wfw:commentRss><description>&lt;p&gt;&lt;span class="Apple-style-span" style="WORD-SPACING:0px;FONT:16px -webkit-monospace;TEXT-TRANSFORM:none;TEXT-INDENT:0px;LETTER-SPACING:normal;BORDER-COLLAPSE:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:2px;-webkit-border-vertical-spacing:2px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0;"&gt;Hi! thanks for the answer. Your exemple is perfect for me because at this point of operation, I have all my data. In the return object, all the informations are there. It&amp;#39;s only when it arrives on the client-side there&amp;#39;s no childs entities.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/165470.aspx</link><pubDate>Sat, 24 Jan 2009 10:44:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:165470</guid><dc:creator>amyo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/165470.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=165470</wfw:commentRss><description>&lt;p&gt;When you use &lt;b&gt;LINQ&lt;/b&gt; object to transfer via &lt;b&gt;WCF&lt;/b&gt;,&lt;/p&gt;
&lt;p&gt;Remember about the &lt;b&gt;differed query execution&lt;/b&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;/b&gt; Suppose you are selecting &lt;b&gt;Order&lt;/b&gt; and there is an &lt;b&gt;OrderDetail&lt;/b&gt; list property.&lt;/p&gt;
&lt;p&gt;By default if you select &lt;b&gt;Order&lt;/b&gt; object it does not load the list of &lt;b&gt;OrderDetail&lt;/b&gt; until you refer that.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Change the loading option of your LINQ data context.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;u&gt;You can do it like below:&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OperationContract]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwd"&gt;public&lt;/span&gt; Order GetOrder(&lt;span class="kwd"&gt;int&lt;/span&gt; orderId)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var db = &lt;span class="kwd"&gt;new&lt;/span&gt; DBDataContext();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var orderloadOption = &lt;span class="kwd"&gt;new&lt;/span&gt; DataLoadOptions();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; orderloadOption.LoadWith(o =&amp;gt; o.OrderDetails);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; db.LoadOptions = orderloadOption;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwd"&gt;return&lt;/span&gt; db.Orders.Where(order=&amp;gt;order.OrderID==orderId).SingleOrDefault();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&amp;nbsp; 
&lt;p&gt;Hope this will help you. &lt;/p&gt;
&lt;p&gt;&lt;b&gt;Please Mark as Answer if this helps you.&lt;/b&gt;&lt;/p&gt;</description></item><item><title>WCF &amp; LINQ To SQL problem</title><link>http://forums.silverlight.net/forums/thread/165324.aspx</link><pubDate>Fri, 23 Jan 2009 21:28:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:165324</guid><dc:creator>dlusignan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/165324.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=15&amp;PostID=165324</wfw:commentRss><description>Hi!

When I retreive data, on the server side everything looks normal. All my childrens are in my parent object. When the data arrives on the client 
side, all my children, of the parent object, are null.

Exemple:

SERVER-SIDE

[parent].[childrens] = List[object];

CLIENT-SIDE

[parent].[childrens] = null;

Anyone who know why?</description></item></channel></rss>