using System; namespace ServiceStack.DataAnnotations { [AttributeUsage(AttributeTargets.Property)] public class ForeignKeyAttribute : ReferencesAttribute { public ForeignKeyAttribute(Type type) : base(type) { } public string OnDelete { get; set; } public string OnUpdate { get; set; } /// /// Explicit foreign key name. If it's null, or empty, the FK name will be autogenerated as before. /// public string ForeignKeyName { get; set; } } }