Click or drag to resize
QueryableExtensionMethodsWithPathTSource Method (IQueryableTSource, FuncIPathEdgeRootParserTSource, IPathEdgeRootParserTSource)
Specifies a prefetch path with the path edges specified in the form of a chain of method calls using lambda expressions.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public static IQueryable<TSource> WithPath<TSource>(
	this IQueryable<TSource> source,
	Func<IPathEdgeRootParser<TSource>, IPathEdgeRootParser<TSource>> edgeSpecifierFunc
)
where TSource : IEntityCore

Parameters

source
Type: System.LinqIQueryableTSource
The source.
edgeSpecifierFunc
Type: SystemFuncIPathEdgeRootParserTSource, IPathEdgeRootParserTSource
The edge specifier func.

Type Parameters

TSource
The type of the source.

Return Value

Type: IQueryableTSource
An IQueryable(Of T) that has the specified path with the edges fetched as related entities, using prefetch paths.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Examples
(some query).WithPath(path=>path.Prefetch<OrderEntity>(c=>c.Order).Excluding(o=>o.RequiredDate, o=>o.ShippedDate);
See Also