CSharpSnapshotGenerator.GenerateForeignKeys 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
GenerateForeignKeys(String, IEnumerable<IForeignKey>, IndentedStringBuilder)
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
Gera código para IForeignKey objetos .
protected virtual void GenerateForeignKeys (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeys (builderName As String, foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)
Parâmetros
- builderName
- String
O nome da variável do construtor.
- foreignKeys
- IEnumerable<IForeignKey>
As chaves estrangeiras.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
O código do construtor é adicionado a.
Aplica-se a
GenerateForeignKeys(String, IEnumerable<IForeignKey>, IndentedStringBuilder)
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
- Origem:
- CSharpSnapshotGenerator.cs
Gera código para IForeignKey objetos .
protected virtual void GenerateForeignKeys (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateForeignKeys (string entityTypeBuilderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeys (builderName As String, foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateForeignKeys (entityTypeBuilderName As String, foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)
Parâmetros
- builderNameentityTypeBuilderName
- String
O nome da variável do construtor.
- foreignKeys
- IEnumerable<IForeignKey>
As chaves estrangeiras.
- stringBuilder
- IndentedStringBuilder
O código do construtor é adicionado a.
Aplica-se a
GenerateForeignKeys(IEnumerable<IForeignKey>, IndentedStringBuilder)
protected virtual void GenerateForeignKeys (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeys : seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateForeignKeys : seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeys (foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)
Parâmetros
- foreignKeys
- IEnumerable<IForeignKey>
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
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