Search Results for

    Show / Hide Table of Contents
    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
    object
    Attribute
    DatabaseReferenceAttribute
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.GetType()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: VeloxDB.ObjectInterface
    Assembly: vlxdb.dll
    Syntax
    public sealed class DatabaseReferenceAttribute : Attribute

    Constructors

    DatabaseReferenceAttribute(bool, DeleteTargetAction, bool)

    Declaration
    public DatabaseReferenceAttribute(bool isNullable = true, DeleteTargetAction deleteTargetAction = DeleteTargetAction.PreventDelete, bool trackInverseReferences = true)
    Parameters
    Type Name Description
    bool isNullable

    Specifies whether the reference can be null. Default is true.

    DeleteTargetAction deleteTargetAction

    Indicates what to do with the object when the referenced object is deleted. Default is DeleteTargetAction.PreventDelete.

    bool trackInverseReferences

    Specifies if the database should track inverse references. Default is true. For more information see InverseReferencesAttribute.

    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
    bool

    TrackInverseReferences

    Gets if tracking of inverse references is enabled.

    Declaration
    public bool TrackInverseReferences { get; }
    Property Value
    Type Description
    bool

    See Also

    DatabasePropertyAttribute
    InverseReferencesAttribute
    In this article
    • Constructors
      • DatabaseReferenceAttribute(bool, DeleteTargetAction, bool)
    • Properties
      • DeleteTargetAction
      • IsNullable
      • TrackInverseReferences
    • See Also
    © 2025 Copyright: VeloxDB
    We use cookies for analytics. By clicking "Accept," you agree to our use of cookies.