Deferred Loading...

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Deferred Loading...

Post by Zero-G. » Fri 31 Jul 2009 11:09

Hey
I am using your latest Components.
In VB.NET I try to use the LoadOptions, so that all data I need will be loaded straight in to my bindingsource.

Therefore I use the following code:

Code: Select all

            GetDataContext.DeferredLoadingEnabled = True
            Dim dlo As New Devart.Data.Linq.DataLoadOptions
            dlo.LoadWith(Of Voptneucontext.Artikelstammdetail)(Function(Detail) Detail.Artikelstammid)
            GetDataContext.LoadOptions = dlo
But the dlo doesn't seem to have any changes to the SQL Statement created in the followed LinQ Query.

Any tipps?

THX

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 03 Aug 2009 11:11

True is the default value for the DeferredLoadingEnabled property.
All data is loaded when this property is set to false.
Please let me know if something goes wrong.

Post Reply