Поделиться через


CSharpSnapshotGenerator.GenerateForeignKey Метод

Определение

Перегрузки

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Создает код для IForeignKey.

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

Создает код для IForeignKey.

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Исходный код:
CSharpSnapshotGenerator.cs
Исходный код:
CSharpSnapshotGenerator.cs
Исходный код:
CSharpSnapshotGenerator.cs
Исходный код:
CSharpSnapshotGenerator.cs
Исходный код:
CSharpSnapshotGenerator.cs

Создает код для 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)

Параметры

builderNameentityTypeBuilderName
String

Имя переменной построителя.

foreignKey
IForeignKey

Внешний ключ.

stringBuilder
IndentedStringBuilder

Код построителя добавляется в .

Применяется к

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)

Параметры

foreignKey
IForeignKey
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Применяется к

GenerateForeignKey(String, IForeignKey, IndentedStringBuilder)

Исходный код:
CSharpSnapshotGenerator.cs
Исходный код:
CSharpSnapshotGenerator.cs
Исходный код:
CSharpSnapshotGenerator.cs
Исходный код:
CSharpSnapshotGenerator.cs

Создает код для 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)

Параметры

builderName
String

Имя переменной построителя.

foreignKey
IForeignKey

Внешний ключ.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Код построителя добавляется в .

Применяется к