RelationalForeignKeyAnnotations RelationalForeignKeyAnnotations Class

Syntax

Declaration

public class RelationalForeignKeyAnnotations : IRelationalForeignKeyAnnotationsPublic Class RelationalForeignKeyAnnotations
    Implements IRelationalForeignKeyAnnotations

Inheritance Hierarchy

  • System.Object
    System.Object
  • RelationalForeignKeyAnnotations
    RelationalForeignKeyAnnotations

Inherited Members

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

Constructors summary

Fields summary

Properties summary

Methods summary

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 ProviderFullAnnotationNamesProtected ReadOnly ProviderFullAnnotationNames As RelationalFullAnnotationNames

Properties

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

    Property Value

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

    Property Value

  • Name
    Name
    public virtual string Name { get; set; }Public Overridable Property Name As String

    Property 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

    Returns

  • GetDefaultForeignKeyName(String, String, IEnumerable<String>)
    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<T><System.String>
      System.Collections.Generic.IEnumerable<T>(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

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll