Compartir a través de


CSharpSnapshotGenerator.GenerateForeignKey Método

Definición

Sobrecargas

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Genera código para un IForeignKeyobjeto .

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

Genera código para un IForeignKeyobjeto .

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

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

Genera código para un IForeignKeyobjeto .

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

Nombre de la variable del generador.

foreignKey
IForeignKey

Clave externa.

stringBuilder
IndentedStringBuilder

El código del generador se agrega a .

Se aplica 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

Se aplica a

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

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

Genera código para un IForeignKeyobjeto .

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

Nombre de la variable del generador.

foreignKey
IForeignKey

Clave externa.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

El código del generador se agrega a .

Se aplica a