Deferred Loading...

Deferred Loading...

Postby 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
Zero-G.
 
Posts: 390
Joined: Sat 09 Dec 2006 12:20

Postby 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.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to LinqConnect (LINQ to SQL support)