RelationalForeignKeyExtensions.GetConstraintName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetConstraintName(IForeignKey) |
Returns the foreign key constraint name. |
GetConstraintName(IReadOnlyForeignKey) |
Returns the foreign key constraint name. |
GetConstraintName(IForeignKey, StoreObjectIdentifier, StoreObjectIdentifier) |
Returns the foreign key constraint name. |
GetConstraintName(IReadOnlyForeignKey, StoreObjectIdentifier, StoreObjectIdentifier) |
Returns the foreign key constraint name. |
GetConstraintName(IForeignKey)
Returns the foreign key constraint name.
public static string GetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member GetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> string
<Extension()>
Public Function GetConstraintName (foreignKey As IForeignKey) As String
Parameters
- foreignKey
- IForeignKey
The foreign key.
Returns
The foreign key constraint name.
Applies to
GetConstraintName(IReadOnlyForeignKey)
Returns the foreign key constraint name.
public static string? GetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey);
static member GetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> string
<Extension()>
Public Function GetConstraintName (foreignKey As IReadOnlyForeignKey) As String
Parameters
- foreignKey
- IReadOnlyForeignKey
The foreign key.
Returns
The foreign key constraint name.
Applies to
GetConstraintName(IForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)
Returns the foreign key constraint name.
public static string GetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier principalStoreObject);
static member GetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * StoreObjectIdentifier * StoreObjectIdentifier -> string
<Extension()>
Public Function GetConstraintName (foreignKey As IForeignKey, ByRef storeObject As StoreObjectIdentifier, ByRef principalStoreObject As StoreObjectIdentifier) As String
Parameters
- foreignKey
- IForeignKey
The foreign key.
- storeObject
- StoreObjectIdentifier
The identifier of the containing store object.
- principalStoreObject
- StoreObjectIdentifier
The identifier of the principal store object.
Returns
The foreign key constraint name.
Applies to
GetConstraintName(IReadOnlyForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)
Returns the foreign key constraint name.
public static string? GetConstraintName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier principalStoreObject);
static member GetConstraintName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * StoreObjectIdentifier * StoreObjectIdentifier -> string
<Extension()>
Public Function GetConstraintName (foreignKey As IReadOnlyForeignKey, ByRef storeObject As StoreObjectIdentifier, ByRef principalStoreObject As StoreObjectIdentifier) As String
Parameters
- foreignKey
- IReadOnlyForeignKey
The foreign key.
- storeObject
- StoreObjectIdentifier
The identifier of the containing store object.
- principalStoreObject
- StoreObjectIdentifier
The identifier of the principal store object.
Returns
The foreign key constraint name.
Applies to
Entity Framework