CSharpSnapshotGenerator.GenerateForeignKey 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
GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
Gera código para um IForeignKey.
protected virtual void GenerateForeignKey (string builderName, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateForeignKey (string entityTypeBuilderName, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKey : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKey : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateForeignKey : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKey : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKey (builderName As String, foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateForeignKey (entityTypeBuilderName As String, foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Parâmetros
- builderNameentityTypeBuilderName
- String
O nome da variável do construtor.
- foreignKey
- IForeignKey
A chave estrangeira.
- stringBuilder
- IndentedStringBuilder
O código do construtor é adicionado a.
Aplica-se a
GenerateForeignKey(IForeignKey, IndentedStringBuilder)
protected virtual void GenerateForeignKey (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateForeignKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKey (foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Parâmetros
- foreignKey
- IForeignKey
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
Aplica-se a
GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
Gera código para um IForeignKey.
protected virtual void GenerateForeignKey (string builderName, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKey : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateForeignKey : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKey (builderName As String, foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Parâmetros
- builderName
- String
O nome da variável do construtor.
- foreignKey
- IForeignKey
A chave estrangeira.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
O código do construtor é adicionado a.
Aplica-se a
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Entity Framework