Table of Contents

Class DataAttribute

Namespace: Casewhere.Models
Assembly: Casewhere.Models.dll

Represents a base class for data attributes.

public abstract class DataAttribute

Inheritance

objectDataAttribute

Derived

ArrayAttribute, BooleanAttribute, DateTimeAttribute, DocumentAttribute, DoubleAttribute, EnumAttribute, ForeignKeyAttribute, GuidAttribute, IntegerAttribute, LongAttribute, ObjectAttribute, StringAttribute

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<DataAttribute>(DataAttribute)

Constructors

DataAttribute()

protected DataAttribute()

Properties

AuditLogContext

public AuditLogContext AuditLogContext { get; set; }

Property Value

AuditLogContext

ComputedExpression

public string ComputedExpression { get; set; }

Property Value

string

DataType

Gets the data type of the attribute.

public abstract DataClassPropertyType DataType { get; }

Property Value

DataClassPropertyType

DefaultValueRuleId

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

public bool ExcludedFromDiagram { get; set; }

Property Value

bool

IsComputed

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.

[Obsolete]
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)

public static Type GetAttributeType(DataClassPropertyType dataType)

Parameters

dataType DataClassPropertyType

Returns

Type

GetComputedRelatedFieldNames()

public virtual IList<string> GetComputedRelatedFieldNames()

Returns

IList<string>

GetDefaultValue()

Gets the default value of the attribute.

public abstract object GetDefaultValue()

Returns

object

The default value of the attribute.

GetObjectDataType()

Gets the object data type of the attribute.

public abstract Type GetObjectDataType()

Returns

Type

The object data type of the attribute.