IMutableEntityType.RemoveForeignKey Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
RemoveForeignKey(IMutableForeignKey) |
Remove uma chave estrangeira desse tipo de entidade. |
RemoveForeignKey(IReadOnlyForeignKey) |
Remove uma chave estrangeira desse tipo de entidade. |
RemoveForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType) |
Remove uma relação dessa entidade. |
RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IMutableKey, IMutableEntityType) |
Remove uma chave estrangeira desse tipo de entidade. |
RemoveForeignKey(IMutableForeignKey)
Remove uma chave estrangeira desse tipo de entidade.
public void RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);
public Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey -> unit
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
Public Sub RemoveForeignKey (foreignKey As IMutableForeignKey)
Public Function RemoveForeignKey (foreignKey As IMutableForeignKey) As IMutableForeignKey
Parâmetros
- foreignKey
- IMutableForeignKey
A chave estrangeira a ser removida.
Retornos
A chave estrangeira removida.
Aplica-se a
RemoveForeignKey(IReadOnlyForeignKey)
Remove uma chave estrangeira desse tipo de entidade.
public Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey? RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey);
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
Public Function RemoveForeignKey (foreignKey As IReadOnlyForeignKey) As IMutableForeignKey
Parâmetros
- foreignKey
- IReadOnlyForeignKey
A chave estrangeira a ser removida.
Retornos
A chave estrangeira removida ou null
se o índice não foi encontrado.
Aplica-se a
RemoveForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType)
Remove uma relação dessa entidade.
public Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey RemoveForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IEntityType principalEntityType);
abstract member RemoveForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
Public Function RemoveForeignKey (properties As IReadOnlyList(Of IProperty), principalKey As IKey, principalEntityType As IEntityType) As IMutableForeignKey
Parâmetros
- properties
- IReadOnlyList<IProperty>
As propriedades nas quais a chave estrangeira é definida.
- principalKey
- IKey
A chave primária ou alternativa referenciada.
- principalEntityType
- IEntityType
O tipo de entidade que a relação tem como destino. Isso pode ser diferente do tipo definido em quando a relação é direcionada a um tipo derivado em uma hierarquia de herança (uma vez que principalKey
a chave é definida no tipo base da hierarquia).
Retornos
A chave estrangeira que foi removida.
Aplica-se a
RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IMutableKey, IMutableEntityType)
Remove uma chave estrangeira desse tipo de entidade.
public Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey? RemoveForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IMutableKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType principalEntityType);
abstract member RemoveForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> * Microsoft.EntityFrameworkCore.Metadata.IMutableKey * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
Public Function RemoveForeignKey (properties As IReadOnlyList(Of IReadOnlyProperty), principalKey As IMutableKey, principalEntityType As IMutableEntityType) As IMutableForeignKey
Parâmetros
- properties
- IReadOnlyList<IReadOnlyProperty>
As propriedades nas quais a chave estrangeira é definida.
- principalKey
- IMutableKey
A chave primária ou alternativa referenciada.
- principalEntityType
- IMutableEntityType
O tipo de entidade que a relação tem como destino. Isso pode ser diferente do tipo definido em quando a relação é direcionada a um tipo derivado em uma hierarquia de herança (uma vez que principalKey
a chave é definida no tipo base da hierarquia).
Retornos
A chave estrangeira removida ou null
se o índice não foi encontrado.
Aplica-se a
Entity Framework