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
Syntaxpublic static RepositoryExtensionsExpressionDependencies GetExpressionDependencies(
this Repository repository,
Expression expression
)
<ExtensionAttribute>
Public Shared Function GetExpressionDependencies (
repository As Repository,
expression As Expression
) As RepositoryExtensionsExpressionDependencies
public:
[ExtensionAttribute]
static RepositoryExtensionsExpressionDependencies^ GetExpressionDependencies(
Repository^ repository,
Expression^ expression
)
[<ExtensionAttribute>]
static member GetExpressionDependencies :
repository : Repository *
expression : Expression -> RepositoryExtensionsExpressionDependencies
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