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
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
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
EnableAuditLog
Gets or sets a value indicating whether audit logging is enabled for the attribute.
public bool EnableAuditLog { get; set; }
Property Value
ExcludedFromDiagram
Gets or sets a value indicating whether the attribute is excluded from the diagram.
public bool ExcludedFromDiagram { get; set; }
Property Value
ExtensionDataClassName
Gets or sets the extension data class name for the attribute.
public string ExtensionDataClassName { get; set; }
Property Value
IsComputed
Gets or sets a value indicating whether the attribute is computed.
public bool IsComputed { get; set; }
Property Value
IsSystemAttribute
Gets or sets a value indicating whether the attribute is a system attribute.
public bool IsSystemAttribute { get; set; }
Property Value
Name
Gets or sets the name of the attribute.
public string Name { get; set; }
Property Value
ReadAccessRule
Gets or sets the read access rule for the attribute.
public string ReadAccessRule { get; set; }
Property Value
Required
Gets or sets a value indicating whether the attribute is required.
public bool Required { get; set; }
Property Value
Title
Gets or sets the title of the attribute.
public string Title { get; set; }
Property Value
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
The type of the attribute.