KeyReferenceTReferencingObject, TReferencedObject Constructor (String, DataAttributeTReferencingObject, NullableGuid, ExpressionFuncTReferencedObject, Guid, Boolean) |
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic KeyReference(
string name,
DataAttribute<TReferencingObject, Nullable<Guid>> referencingAttribute,
Expression<Func<TReferencedObject, Guid>> referencedKeyValueGetter,
bool isOwnership = false
)
Public Sub New (
name As String,
referencingAttribute As DataAttribute(Of TReferencingObject, Nullable(Of Guid)),
referencedKeyValueGetter As Expression(Of Func(Of TReferencedObject, Guid)),
Optional isOwnership As Boolean = false
)
public:
KeyReference(
String^ name,
DataAttribute<TReferencingObject, Nullable<Guid^>^>^ referencingAttribute,
Expression<Func<TReferencedObject, Guid^>^>^ referencedKeyValueGetter,
bool isOwnership = false
)
new :
name : string *
referencingAttribute : DataAttribute<'TReferencingObject, Nullable<Guid>> *
referencedKeyValueGetter : Expression<Func<'TReferencedObject, Guid>> *
?isOwnership : bool
(* Defaults:
let _isOwnership = defaultArg isOwnership false
*)
-> KeyReference
Parameters
- name
- Type: SystemString
Name of the reference. - referencingAttribute
- Type: Aloe.SystemFrameworks.DomainDataAttributeTReferencingObject, NullableGuid
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