Skip to main content

ForeignKeyAttribute

Define an RDBMS Foreign Key Relationship

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
[AttributeUsage(AttributeTargets.Property)]
public class ForeignKeyAttribute : ReferencesAttribute, _Attribute

Properties

OnDelete

View Source
Declaration
public string OnDelete { get; set; }

OnUpdate

View Source
Declaration
public string OnUpdate { get; set; }

ForeignKeyName

Explicit foreign key name. If it's null, or empty, the FK name will be autogenerated as before.

View Source
Declaration
public string ForeignKeyName { get; set; }

Inherited Properties

Type

View Source
Declaration
public Type Type { get; set; }

Implements

  • System.Runtime.InteropServices._Attribute