ObjectQuery<T>.Include Method (String)

 

Specifies the related objects to include in the query results.

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public ObjectQuery<T> Include(
	string path
)

Parameters

path
Type: System.String

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

Return Value

Type: System.Data.Entity.Core.Objects.ObjectQuery<T>

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

Exception Condition
ArgumentNullException

path is null.

ArgumentException

path is empty.