LINQ to SQL LoadOptions ignored when using Take in the query - by Jim Wooley

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 473333 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 7/8/2009 1:44:41 PM
Access Restriction Public

Description

When setting up a context with DataLoadOptions, they are observed in VS2008 unless the query includes a Take extension method. If the take is included then the load options are ignored. (Note this is different behavior from the feedback submission issued for VS 2010 which ignores the loadoptions regardless of whether Take is used or not).
Sign in to post a comment.
Posted by Jim Wooley on 7/15/2009 at 9:44 AM
The Skip option works when targeting 4.0, but it doesn't seem to work when targeting 3.5.
Posted by Faisal [MSFT] on 7/13/2009 at 2:16 PM
Thanks for reporting the issue.
We had fixed a related issue with Skip in Visual Studio 2010 Beta 1. The workaround is to use Skip(0) in your query in order to get the correct eager loading behavior before using Take().

Given where we are with the release, we are not able to address the Take() issue in this release. Please use Skip() with Take in order to work around the issue.

Please let us know if you are still seeing incorrect behavior.

Thanks.
LINQ to SQL Team
Posted by Microsoft on 7/12/2009 at 8:17 PM
Thanks for your feedback. We are routing this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team
Posted by Microsoft on 7/10/2009 at 12:49 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com/)