Click or drag to resize

KeyReferenceTReferencingObject, TReferencedObject Constructor (String, DataAttributeTReferencingObject, Guid, ExpressionFuncTReferencedObject, Guid, Boolean)

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public KeyReference(
	string name,
	DataAttribute<TReferencingObject, Guid> referencingAttribute,
	Expression<Func<TReferencedObject, Guid>> referencedKeyValueGetter,
	bool isOwnership = false
)

Parameters

name
Type: SystemString
Name of the reference.
referencingAttribute
Type: Aloe.SystemFrameworks.DomainDataAttributeTReferencingObject, Guid
The referencing attribute.
referencedKeyValueGetter
Type: System.Linq.ExpressionsExpressionFuncTReferencedObject, Guid
The referenced key value getter.
isOwnership (Optional)
Type: SystemBoolean
if set to true the reference is ownership reference.
See Also