CSharpSnapshotGenerator.GenerateOwnedType 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
GenerateOwnedType(String, IForeignKey, IndentedStringBuilder) |
Generates code for an owned entity types. |
GenerateOwnedType(String, IForeignKey, IndentedStringBuilder) |
Generates code for an owned entity types. |
GenerateOwnedType(String, IForeignKey, IndentedStringBuilder)
Generates code for an owned entity types.
protected virtual void GenerateOwnedType (string builderName, Microsoft.EntityFrameworkCore.Metadata.IForeignKey ownership, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateOwnedType (string entityTypeBuilderName, Microsoft.EntityFrameworkCore.Metadata.IForeignKey ownership, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateOwnedType : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateOwnedType : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateOwnedType : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateOwnedType : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateOwnedType (builderName As String, ownership As IForeignKey, stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateOwnedType (entityTypeBuilderName As String, ownership As IForeignKey, stringBuilder As IndentedStringBuilder)
Parameters
- builderNameentityTypeBuilderName
- String
The name of the builder variable.
- ownership
- IForeignKey
The foreign key identifying the entity type.
- stringBuilder
- IndentedStringBuilder
The builder code is added to.
Applies to
GenerateOwnedType(String, IForeignKey, IndentedStringBuilder)
Generates code for an owned entity types.
protected virtual void GenerateOwnedType (string builderName, Microsoft.EntityFrameworkCore.Metadata.IForeignKey ownership, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateOwnedType : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateOwnedType : string * Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateOwnedType (builderName As String, ownership As IForeignKey, stringBuilder As IndentedStringBuilder)
Parameters
- builderName
- String
The name of the builder variable.
- ownership
- IForeignKey
The foreign key identifying the entity type.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
The builder code is added to.
Applies to
Entity Framework