Condividi tramite


CSharpSnapshotGenerator.GenerateForeignKey Metodo

Definizione

Overload

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs

Genera il codice per un oggetto 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)

Parametri

builderNameentityTypeBuilderName
String

Nome della variabile del generatore.

foreignKey
IForeignKey

Chiave esterna.

stringBuilder
IndentedStringBuilder

Il codice del generatore viene aggiunto a .

Si applica 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)

Parametri

foreignKey
IForeignKey
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Si applica a

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs

Genera il codice per un oggetto 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)

Parametri

builderName
String

Nome della variabile del generatore.

foreignKey
IForeignKey

Chiave esterna.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Il codice del generatore viene aggiunto a .

Si applica a