Class ForeignKeyAttribute
Attribute that represents a Foreign Key reference
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class ForeignKeyAttribute : ReferencesAttribute, _Attribute
Constructors
ForeignKeyAttribute(Type)
Declaration
public ForeignKeyAttribute(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Properties
Column
Gets or sets the name of the Column that this foreign key should reference.
Declaration
public string Column { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
PrimaryKey column is used by default
Name
Gets or sets the name of the foreign key refence
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Overrides the default naming of a foreign key reference: FK_thisTableName_refTableName