ObjectQuery<T>.Include Method (String)
Specifies the related objects to include in the query results.
Assembly: EntityFramework (in EntityFramework.dll)
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. |