Delen via


RelationalForeignKeyExtensions.GetDefaultName Method

Definition

Overloads

GetDefaultName(IForeignKey)

Returns the default constraint name that would be used for this foreign key.

GetDefaultName(IReadOnlyForeignKey)

Returns the default constraint name that would be used for this foreign key.

GetDefaultName(IForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

Returns the default constraint name that would be used for this foreign key.

GetDefaultName(IReadOnlyForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

Returns the default constraint name that would be used for this foreign key.

GetDefaultName(IForeignKey)

Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs

Returns the default constraint name that would be used for this foreign key.

public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member GetDefaultName : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> string
<Extension()>
Public Function GetDefaultName (foreignKey As IForeignKey) As String

Parameters

foreignKey
IForeignKey

The foreign key.

Returns

The default constraint name that would be used for this foreign key.

Applies to

GetDefaultName(IReadOnlyForeignKey)

Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs

Returns the default constraint name that would be used for this foreign key.

public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey);
public static string? GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey);
static member GetDefaultName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> string
<Extension()>
Public Function GetDefaultName (foreignKey As IReadOnlyForeignKey) As String

Parameters

foreignKey
IReadOnlyForeignKey

The foreign key.

Returns

The default constraint name that would be used for this foreign key.

Applies to

GetDefaultName(IForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

Source:
RelationalForeignKeyExtensions.cs

Returns the default constraint name that would be used for this foreign key.

public static string GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier principalStoreObject);
static member GetDefaultName : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * StoreObjectIdentifier * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultName (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 default constraint name that would be used for this foreign key.

Applies to

GetDefaultName(IReadOnlyForeignKey, StoreObjectIdentifier, StoreObjectIdentifier)

Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs
Source:
RelationalForeignKeyExtensions.cs

Returns the default constraint name that would be used for this foreign key.

public static string? GetDefaultName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier principalStoreObject);
static member GetDefaultName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * StoreObjectIdentifier * StoreObjectIdentifier -> string
<Extension()>
Public Function GetDefaultName (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 default constraint name that would be used for this foreign key.

Applies to