CSharpSnapshotGenerator.GenerateEntityTypeRelationships 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
GenerateEntityTypeRelationships(String, IEntityType, IndentedStringBuilder) |
Generates code for the relationships of an IEntityType. |
GenerateEntityTypeRelationships(String, IEntityType, IndentedStringBuilder) |
Generates code for the relationships of an IEntityType. |
GenerateEntityTypeRelationships(String, IEntityType, IndentedStringBuilder)
Generates code for the relationships of an IEntityType.
protected virtual void GenerateEntityTypeRelationships (string builderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateEntityTypeRelationships (string modelBuilderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateEntityTypeRelationships : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateEntityTypeRelationships : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateEntityTypeRelationships : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateEntityTypeRelationships : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateEntityTypeRelationships (builderName As String, entityType As IEntityType, stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateEntityTypeRelationships (modelBuilderName As String, entityType As IEntityType, stringBuilder As IndentedStringBuilder)
Parameters
- builderNamemodelBuilderName
- String
The name of the builder variable.
- entityType
- IEntityType
The entity type.
- stringBuilder
- IndentedStringBuilder
The builder code is added to.
Applies to
GenerateEntityTypeRelationships(String, IEntityType, IndentedStringBuilder)
Generates code for the relationships of an IEntityType.
protected virtual void GenerateEntityTypeRelationships (string builderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateEntityTypeRelationships : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateEntityTypeRelationships : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateEntityTypeRelationships (builderName As String, entityType As IEntityType, stringBuilder As IndentedStringBuilder)
Parameters
- builderName
- String
The name of the builder variable.
- entityType
- IEntityType
The entity type.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
The builder code is added to.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for