RelationalKeyBuilderExtensions RelationalKeyBuilderExtensions Class

Relational database specific extension methods for KeyBuilder.

Syntax

Declaration

public static class RelationalKeyBuilderExtensionsPublic Module RelationalKeyBuilderExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • RelationalKeyBuilderExtensions
    RelationalKeyBuilderExtensions

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()

Methods summary

Configures the name of the key constraint in the database when targeting a relational database.

Methods

  • HasName(KeyBuilder, String)
    HasName(KeyBuilder, String)

    Configures the name of the key constraint in the database when targeting a relational database.

    public static KeyBuilder HasName(this KeyBuilder keyBuilder, string name)<ExtensionAttribute>
    Public Shared Function HasName(keyBuilder As KeyBuilder, name As String) As KeyBuilder

    Parameters

    • keyBuilder

      The builder for the key being configured.

    • name
      System.String
      System.String

      The name of the key.

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll