Page 1 of 1

Deferred Loading...

Posted: Fri 31 Jul 2009 11:09
by Zero-G.
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

Posted: Mon 03 Aug 2009 11:11
by AndreyR
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.