Class ForeignKeyAttribute
Namespace: Casewhere.Models
Assembly: Casewhere.Models.dll
Represents an attribute that indicates a foreign key relationship between two data classes.
public class ForeignKeyAttribute : DataAttribute
Inheritance
object ← DataAttribute ← ForeignKeyAttribute
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<ForeignKeyAttribute>(ForeignKeyAttribute)
Constructors
ForeignKeyAttribute()
public ForeignKeyAttribute()
Properties
DataClassId
Gets or sets the ID of the data class.
public Guid DataClassId { get; set; }
Property Value
DataType
Gets the data type of the attribute.
public override DataClassPropertyType DataType { get; }
Property Value
DataClassPropertyType
DisplayField
Gets or sets the display field name.
public string DisplayField { get; set; }
Property Value
EnforceConstraint
Gets or sets a value indicating whether to enforce the foreign key constraint.
public bool EnforceConstraint { get; set; }
Property Value
IsIdentifiable
public bool IsIdentifiable { get; set; }
Property Value
NavigationName
Gets or sets the navigation property name.
public string NavigationName { get; set; }
Property Value
Methods
GetObjectDataType()
Gets the object data type of the attribute.
public override Type GetObjectDataType()
Returns
The object data type of the attribute.