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


CSharpSnapshotGenerator.GenerateForeignKeys Метод

Определение

Перегрузки

GenerateForeignKeys(String, IEnumerable<IForeignKey>, IndentedStringBuilder)

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

GenerateForeignKeys(String, IEnumerable<IForeignKey>, IndentedStringBuilder)

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

GenerateForeignKeys(IEnumerable<IForeignKey>, IndentedStringBuilder)

GenerateForeignKeys(String, IEnumerable<IForeignKey>, IndentedStringBuilder)

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

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

protected virtual void GenerateForeignKeys (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeys (builderName As String, foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)

Параметры

builderName
String

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

foreignKeys
IEnumerable<IForeignKey>

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

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

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

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

GenerateForeignKeys(String, IEnumerable<IForeignKey>, IndentedStringBuilder)

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

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

protected virtual void GenerateForeignKeys (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateForeignKeys (string entityTypeBuilderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeys (builderName As String, foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateForeignKeys (entityTypeBuilderName As String, foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)

Параметры

builderNameentityTypeBuilderName
String

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

foreignKeys
IEnumerable<IForeignKey>

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

stringBuilder
IndentedStringBuilder

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

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

GenerateForeignKeys(IEnumerable<IForeignKey>, IndentedStringBuilder)

protected virtual void GenerateForeignKeys (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeys : seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateForeignKeys : seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeys (foreignKeys As IEnumerable(Of IForeignKey), stringBuilder As IndentedStringBuilder)

Параметры

foreignKeys
IEnumerable<IForeignKey>
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

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