Sdílet prostřednictvím


CSharpSnapshotGenerator.GenerateForeignKey Metoda

Definice

Přetížení

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Vygeneruje kód pro .IForeignKey

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

Vygeneruje kód pro .IForeignKey

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Zdroj:
CSharpSnapshotGenerator.cs
Zdroj:
CSharpSnapshotGenerator.cs
Zdroj:
CSharpSnapshotGenerator.cs
Zdroj:
CSharpSnapshotGenerator.cs
Zdroj:
CSharpSnapshotGenerator.cs

Vygeneruje kód pro .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)

Parametry

builderNameentityTypeBuilderName
String

Název proměnné tvůrce.

foreignKey
IForeignKey

Cizí klíč.

stringBuilder
IndentedStringBuilder

Kód tvůrce se přidá do.

Platí pro

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)

Parametry

foreignKey
IForeignKey
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Platí pro

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Zdroj:
CSharpSnapshotGenerator.cs
Zdroj:
CSharpSnapshotGenerator.cs
Zdroj:
CSharpSnapshotGenerator.cs
Zdroj:
CSharpSnapshotGenerator.cs

Vygeneruje kód pro .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)

Parametry

builderName
String

Název proměnné tvůrce.

foreignKey
IForeignKey

Cizí klíč.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Kód tvůrce se přidá do.

Platí pro