Partager via


CSharpSnapshotGenerator.GenerateForeignKey Méthode

Définition

Surcharges

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Génère du code pour un IForeignKey.

GenerateForeignKey(IForeignKey, IndentedStringBuilder)
GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Génère du code pour un IForeignKey.

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs

Génère du code pour un 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)

Paramètres

builderNameentityTypeBuilderName
String

Nom de la variable de générateur.

foreignKey
IForeignKey

Clé étrangère.

stringBuilder
IndentedStringBuilder

Le code du générateur est ajouté à.

S’applique à

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)

Paramètres

foreignKey
IForeignKey
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

S’applique à

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs

Génère du code pour un 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)

Paramètres

builderName
String

Nom de la variable de générateur.

foreignKey
IForeignKey

Clé étrangère.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Le code du générateur est ajouté à.

S’applique à