LinqConnect Documentation
Devart.Data.Linq Namespace / DataLoadOptions Class
Members

In This Topic
    DataLoadOptions Class
    In This Topic
    Allows immediate loading and filtering of related data.
    Syntax
    'Declaration
     
    Public NotInheritable Class DataLoadOptions 
    public sealed class DataLoadOptions 
    Remarks

    When you query for an object, you actually retrieve only the object you requested. The related objects are not automatically fetched at the same time. The DataLoadOptions class provides two methods to achieve immediate loading of specified related data. The LoadWith method allows for immediate loading of data related to the main target. The AssociateWith method allows for filtering related objects.

    Assigning a DataLoadOptions to a DataContext after the first query has been executed generates an exception.

    Modifying a DataLoadOptions after it has been assigned to a DataContext generates an exception.

    Our implementation of DataLoadOptions class supports cycle handling, self-recursion, and back-pointers.

    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

    Reference

    DataLoadOptions Members
    Devart.Data.Linq Namespace
    LoadWith Method
    Devart.Data.Linq.Queryable.LoadWith``1(System.Collections.Generic.IEnumerable`1{TEntity},System.Linq.Expressions.Expression`1{Func`2})