RelationalForeignKeyExtensions.SetIsExcludedFromMigrations 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
| Nome | Descrição |
|---|---|
| SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>) |
Define um valor que indica se a restrição de chave estrangeira é excluída das migrações. |
| SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean) |
Define um valor que indica se a restrição de chave estrangeira é excluída das migrações. |
SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>)
Define um valor que indica se a restrição de chave estrangeira é excluída das migrações.
public static void SetIsExcludedFromMigrations(this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, bool? excluded);
static member SetIsExcludedFromMigrations : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsExcludedFromMigrations (foreignKey As IMutableForeignKey, excluded As Nullable(Of Boolean))
Parâmetros
- foreignKey
- IMutableForeignKey
A chave estrangeira.
Aplica-se a
SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean)
Define um valor que indica se a restrição de chave estrangeira é excluída das migrações.
public static bool? SetIsExcludedFromMigrations(this Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, bool? excluded, bool fromDataAnnotation = false);
static member SetIsExcludedFromMigrations : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function SetIsExcludedFromMigrations (foreignKey As IConventionForeignKey, excluded As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)
Parâmetros
- foreignKey
- IConventionForeignKey
A chave estrangeira.
- fromDataAnnotation
- Boolean
Indica se a configuração foi especificada usando uma anotação de dados.
Retornos
O valor configurado.