CSharpSnapshotGenerator.GenerateForeignKeyAnnotations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder) |
Generates code for the annotations on a foreign key. |
GenerateForeignKeyAnnotations(String, IForeignKey, IndentedStringBuilder) |
Generates code for the annotations on a foreign key. |
GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder) |
Generates code for the annotations on a foreign key. |
GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
Generates code for the annotations on a foreign key.
protected virtual void GenerateForeignKeyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateForeignKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeyAnnotations (foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Parameters
- foreignKey
- IForeignKey
The foreign key.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
The builder code is added to.
Applies to
GenerateForeignKeyAnnotations(String, IForeignKey, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
Generates code for the annotations on a foreign key.
protected virtual void GenerateForeignKeyAnnotations (string foreignKeyBuilderName, Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKeyAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeyAnnotations (foreignKeyBuilderName As String, foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Parameters
- foreignKeyBuilderName
- String
The name of the builder variable.
- foreignKey
- IForeignKey
The foreign key.
- stringBuilder
- IndentedStringBuilder
The builder code is added to.
Applies to
GenerateForeignKeyAnnotations(IForeignKey, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
Generates code for the annotations on a foreign key.
protected virtual void GenerateForeignKeyAnnotations (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateForeignKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateForeignKeyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateForeignKeyAnnotations (foreignKey As IForeignKey, stringBuilder As IndentedStringBuilder)
Parameters
- foreignKey
- IForeignKey
The foreign key.
- stringBuilder
- IndentedStringBuilder
The builder code is added to.
Applies to
Entity Framework