LinqConnect Documentation
Devart.Data.Linq Namespace / DataContext Class / LoadOptions Property

LoadOptions Property
Gets or sets the DataLoadOptions associated with this DataContext.
Syntax
'Declaration
 
Public Property LoadOptions As DataLoadOptions
 

Property Value

Instance of DataLoadOptions class associated with this DataContext.
Remarks
This property gets or sets the options that are used to define prefetch behavior for deferred-loaded members and membership of related collections. This property cannot be set after first query execution or changed after setting. However, you may use our Devart.Data.Linq.Queryable.LoadWith``1(System.Collections.Generic.IEnumerable`1{TEntity},System.Linq.Expressions.Expression`1{Func`2}) method of the Queryable class to customize prefetch behavior for deferred-loaded members for specific queries.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also