Share via


ObjectQuery<T>.Include(String) Method

Definition

Specifies the related objects to include in the query results.

public System.Data.Entity.Core.Objects.ObjectQuery<T> Include (string path);
member this.Include : string -> System.Data.Entity.Core.Objects.ObjectQuery<'T>
Public Function Include (path As String) As ObjectQuery(Of T)

Parameters

path
String

Dot-separated list of related objects to return in the query results.

Returns

A new ObjectQuery<T> with the defined query path.

Exceptions

path is null.

path is empty.

Applies to