note
VeloxDB is still in beta and APIs are subject to change. We are in the process of completing the documentation, so some sections may be incomplete or empty at this time.
Class DatabaseReferenceAttribute
Specifies that the property is a database reference.
Inheritance
System.Object
DatabaseReferenceAttribute
Namespace: VeloxDB.ObjectInterface
Assembly: vlxdb.dll
Syntax
public sealed class DatabaseReferenceAttribute : Attribute
Constructors
DatabaseReferenceAttribute(Boolean, DeleteTargetAction, Boolean)
Declaration
public DatabaseReferenceAttribute(bool isNullable = true, DeleteTargetAction deleteTargetAction, bool trackInverseReferences = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isNullable | Specifies whether the reference can be null. Default is |
DeleteTargetAction | deleteTargetAction | Indicates what to do with the object when the referenced object is deleted.
Default is |
System.Boolean | trackInverseReferences | Specifies if the database should track inverse references. Default is |
Properties
DeleteTargetAction
Gets what happens when referenced object is deleted.
Declaration
public DeleteTargetAction DeleteTargetAction { get; }
Property Value
Type | Description |
---|---|
DeleteTargetAction |
IsNullable
Gets if the reference is nullable.
Declaration
public bool IsNullable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
TrackInverseReferences
Gets if tracking of inverse references is enabled.
Declaration
public bool TrackInverseReferences { get; }
Property Value
Type | Description |
---|---|
System.Boolean |