Method Track
Track<TExpressionContext, TOut>(TExpressionContext, Expression<Func<TExpressionContext, TOut>>)
Tracks changes in the specified context using a selector expression.
Declaration
public TOut Track<TExpressionContext, TOut>(TExpressionContext context, Expression<Func<TExpressionContext, TOut>> selector) where TExpressionContext : class
Parameters
| Type | Name | Description |
|---|---|---|
| TExpressionContext | context | The context to track changes in. |
| Expression<Func<TExpressionContext, TOut>> | selector | The expression used to select the property to track. |
Returns
| Type | Description |
|---|---|
| TOut | The value of the property selected by the provided expression. |
Type Parameters
| Name | Description |
|---|---|
| TExpressionContext | The type of the context to track changes in. |
| TOut | The type of the output from the selector expression. |