Click or drag to resize

RepositoryExtensionsGetExpressionDependencies Method

Gets the data attributes and references (from the repository) on which the expression depends.

Namespace:  Aloe.SystemFrameworks.Domain.Extensions
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public static RepositoryExtensionsExpressionDependencies GetExpressionDependencies(
	this Repository repository,
	Expression expression
)

Parameters

repository
Type: Aloe.SystemFrameworks.DomainRepository
The repository.
expression
Type: System.Linq.ExpressionsExpression
The expression.

Return Value

Type: RepositoryExtensionsExpressionDependencies
The attributes on which the expression depends.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Repository. 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).
Remarks
The GetExpressionDependencies(Repository, Expression) method traverses the full expression tree and returns each reference to an attribute, which is from the repository. The method does not return references to attributes from other repositories. For example:
salesOrdersRepository.GetDependantAttributes(so => ((SalesOrder)so).Customer.Name);
would return "SalesOrder.Customer", but would not return "Customer.Name".
See Also