Table of Contents

Class DslDataAttribute

Namespace: Casewhere.Runtime.DSL.Models.DataAttributes
Assembly: Casewhere.Runtime.dll

Represents an abstract base class for DSL data attributes.

public abstract class DslDataAttribute

Inheritance

objectDslDataAttribute

Derived

DslArrayAttribute, DslBooleanAttribute, DslDateTimeAttribute, DslDocumentAttribute, DslDoubleAttribute, DslEnumAttribute, DslForeignKeyAttribute, DslGuidAttribute, DslIntegerAttribute, DslLongAttribute, DslObjectAttribute, DslStringAttribute

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Extension Methods

ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<DslDataAttribute>(DslDataAttribute)

Constructors

DslDataAttribute()

protected DslDataAttribute()

Properties

ComputedExpression

Gets or sets the computed expression for the attribute.

public string ComputedExpression { get; set; }

Property Value

string

DataType

Gets the data type of the attribute.

[JsonConverter(typeof(StringEnumConverter))]
public abstract DataClassPropertyType DataType { get; }

Property Value

DataClassPropertyType

DefaultValueRuleId

Gets or sets the default value rule ID for the attribute.

public Guid? DefaultValueRuleId { get; set; }

Property Value

Guid?

Description

Gets or sets the description of the attribute.

public string Description { get; set; }

Property Value

string

EnableAuditLog

Gets or sets a value indicating whether audit logging is enabled for the attribute.

public bool EnableAuditLog { get; set; }

Property Value

bool

ExcludedFromDiagram

Gets or sets a value indicating whether the attribute is excluded from the diagram.

public bool ExcludedFromDiagram { get; set; }

Property Value

bool

ExtensionDataClassName

Gets or sets the extension data class name for the attribute.

public string ExtensionDataClassName { get; set; }

Property Value

string

IsComputed

Gets or sets a value indicating whether the attribute is computed.

public bool IsComputed { get; set; }

Property Value

bool

IsSystemAttribute

Gets or sets a value indicating whether the attribute is a system attribute.

public bool IsSystemAttribute { get; set; }

Property Value

bool

Name

Gets or sets the name of the attribute.

public string Name { get; set; }

Property Value

string

ReadAccessRule

Gets or sets the read access rule for the attribute.

public string ReadAccessRule { get; set; }

Property Value

string

Required

Gets or sets a value indicating whether the attribute is required.

public bool Required { get; set; }

Property Value

bool

Title

Gets or sets the title of the attribute.

public string Title { get; set; }

Property Value

string

Methods

GetAttributeType(DataClassPropertyType)

Gets the attribute type based on the specified data type.

public static Type GetAttributeType(DataClassPropertyType dataType)

Parameters

dataType DataClassPropertyType

The data type of the attribute.

Returns

Type

The type of the attribute.