Class DataAttribute
Namespace: Casewhere.Models
Assembly: Casewhere.Models.dll
Represents a base class for data attributes.
public abstract class DataAttribute
Inheritance
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
ComputedExpression
public string ComputedExpression { get; set; }
Property Value
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
EnableAuditLog
Gets or sets a value indicating whether audit logging is enabled for the attribute.
public bool EnableAuditLog { get; set; }
Property Value
ExcludedFromDiagram
public bool ExcludedFromDiagram { get; set; }
Property Value
IsComputed
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.
[Obsolete]
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)
public static Type GetAttributeType(DataClassPropertyType dataType)
Parameters
dataType
DataClassPropertyType
Returns
GetComputedRelatedFieldNames()
public virtual IList<string> GetComputedRelatedFieldNames()
Returns
GetDefaultValue()
Gets the default value of the attribute.
public abstract object GetDefaultValue()
Returns
The default value of the attribute.
GetObjectDataType()
Gets the object data type of the attribute.
public abstract Type GetObjectDataType()
Returns
The object data type of the attribute.