Table of Contents

Class EnumAttribute

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

Represents an attribute that holds an enumeration value.

public class EnumAttribute : DataAttribute

Inheritance

objectDataAttributeEnumAttribute

Inherited Members

DataAttribute.GetObjectDataType(), DataAttribute.GetDefaultValue(), DataAttribute.GetComputedRelatedFieldNames(), DataAttribute.GetAttributeType(DataClassPropertyType), DataAttribute.DataType, DataAttribute.Name, DataAttribute.Title, DataAttribute.Description, DataAttribute.IsSystemAttribute, DataAttribute.Required, DataAttribute.EnableAuditLog, DataAttribute.ReadAccessRule, DataAttribute.ExcludedFromDiagram, DataAttribute.IsComputed, DataAttribute.ComputedExpression, DataAttribute.DefaultValueRuleId, DataAttribute.AuditLogContext, 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<EnumAttribute>(EnumAttribute)

Constructors

EnumAttribute()

public EnumAttribute()

Properties

Collation

public CustomCollation Collation { get; set; }

Property Value

CustomCollation

DataType

Gets the data type of the attribute, which is Casewhere.SystemTypes.DataClassPropertyType.Enum.

public override DataClassPropertyType DataType { get; }

Property Value

DataClassPropertyType

IsSearchable

public bool IsSearchable { get; set; }

Property Value

bool

Options

Gets or sets the list of options for the enumeration attribute.

public IList<OptionItem> Options { get; set; }

Property Value

IList<OptionItem>

Methods

GetSearchableData(dynamic)

public IList<string> GetSearchableData(dynamic dynamicValue)

Parameters

dynamicValue dynamic

Returns

IList<string>