RepositoryGetReferenceTObject, TResult Method |
Gets the backing reference of the member, specified in the expression. The expression should be in the format 's => s.Member'.
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic ObjectReference GetReference<TObject, TResult>(
Expression<Func<TObject, TResult>> memberExpression
)
where TObject : DomainObject
Public Function GetReference(Of TObject As DomainObject, TResult) (
memberExpression As Expression(Of Func(Of TObject, TResult))
) As ObjectReference
public:
generic<typename TObject, typename TResult>
where TObject : DomainObject
ObjectReference^ GetReference(
Expression<Func<TObject, TResult>^>^ memberExpression
)
member GetReference :
memberExpression : Expression<Func<'TObject, 'TResult>> -> ObjectReference when 'TObject : DomainObject
Parameters
- memberExpression
- Type: System.Linq.ExpressionsExpressionFuncTObject, TResult
The member expression. It should contain only a single member reference.
Type Parameters
- TObject
- The type of the object.
- TResult
- The type of the result.
Return Value
Type:
ObjectReference
The backing reference of the member, specified in the expression.
Returns null if the reference was not found or the expression was not properly formatted.
See Also