SqlSet<TResult>.Include Method
Specifies the related objects to include in the query results.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public SqlSet<TResult> Include(
string path
)
Parameters
path
Type: System.String
Dot-separated list of related objects to return in the query results.
Return Value
Type: SqlSet<TResult>
A new SqlSet<TResult> with the defined query path.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | This method can only be used on sets where the result type is an annotated class. |