RelationalForeignKeyAnnotations RelationalForeignKeyAnnotations Class

Definition

public class RelationalForeignKeyAnnotations : IRelationalForeignKeyAnnotations
Public Class RelationalForeignKeyAnnotations
    Implements IRelationalForeignKeyAnnotations
Inheritance
System.ObjectSystem.Object
RelationalForeignKeyAnnotationsRelationalForeignKeyAnnotations
Implements

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

RelationalForeignKeyAnnotations(IForeignKey, RelationalFullAnnotationNames) RelationalForeignKeyAnnotations(IForeignKey, RelationalFullAnnotationNames)

public RelationalForeignKeyAnnotations(IForeignKey foreignKey, RelationalFullAnnotationNames providerFullAnnotationNames)
Public Sub New(foreignKey As IForeignKey, providerFullAnnotationNames As RelationalFullAnnotationNames)
Parameters

RelationalForeignKeyAnnotations(RelationalAnnotations, RelationalFullAnnotationNames) RelationalForeignKeyAnnotations(RelationalAnnotations, RelationalFullAnnotationNames)

protected RelationalForeignKeyAnnotations(RelationalAnnotations annotations, RelationalFullAnnotationNames providerFullAnnotationNames)
Protected Sub New(annotations As RelationalAnnotations, providerFullAnnotationNames As RelationalFullAnnotationNames)
Parameters

Fields

DefaultForeignKeyNamePrefix DefaultForeignKeyNamePrefix

protected const string DefaultForeignKeyNamePrefix = "FK"
Protected Const DefaultForeignKeyNamePrefix As String = "FK"

ProviderFullAnnotationNames ProviderFullAnnotationNames

protected readonly RelationalFullAnnotationNames ProviderFullAnnotationNames
Protected ReadOnly ProviderFullAnnotationNames As RelationalFullAnnotationNames

Properties

Annotations Annotations

protected virtual RelationalAnnotations Annotations { get; }
Protected Overridable ReadOnly Property Annotations As RelationalAnnotations

ForeignKey ForeignKey

protected virtual IForeignKey ForeignKey { get; }
Protected Overridable ReadOnly Property ForeignKey As IForeignKey

Name Name

public virtual string Name { get; set; }
Public Overridable Property Name As String
Value
System.String System.String

Methods

GetAnnotations(IEntityType) GetAnnotations(IEntityType)

protected virtual IRelationalEntityTypeAnnotations GetAnnotations(IEntityType entityType)
Protected Overridable Function GetAnnotations(entityType As IEntityType) As IRelationalEntityTypeAnnotations
Parameters
Returns

GetAnnotations(IProperty) GetAnnotations(IProperty)

protected virtual IRelationalPropertyAnnotations GetAnnotations(IProperty property)
Protected Overridable Function GetAnnotations(property As IProperty) As IRelationalPropertyAnnotations
Parameters
property
IProperty IProperty
Returns

GetDefaultForeignKeyName(String, String, IEnumerable) GetDefaultForeignKeyName(String, String, IEnumerable(Of String))

public static string GetDefaultForeignKeyName(string dependentTableName, string principalTableName, IEnumerable<string> dependentEndPropertyNames)
Public Shared Function GetDefaultForeignKeyName(dependentTableName As String, principalTableName As String, dependentEndPropertyNames As IEnumerable(Of String)) As String
Parameters
dependentTableName
System.String System.String
principalTableName
System.String System.String
dependentEndPropertyNames
System.Collections.Generic.IEnumerable<System.String> System.Collections.Generic.IEnumerable(Of System.String)
Returns
System.String System.String

GetDefaultName() GetDefaultName()

protected virtual string GetDefaultName()
Protected Overridable Function GetDefaultName As String
Returns
System.String System.String

SetName(String) SetName(String)

protected virtual bool SetName(string value)
Protected Overridable Function SetName(value As String) As Boolean
Parameters
value
System.String System.String
Returns
System.Boolean System.Boolean