Share via


CSharpSnapshotGenerator.GenerateOwnedTypes Method

Definition

Overloads

GenerateOwnedTypes(String, IEnumerable<IForeignKey>, IndentedStringBuilder)

Generates code for owned entity types.

GenerateOwnedTypes(String, IEnumerable<IForeignKey>, IndentedStringBuilder)

Generates code for owned entity types.

GenerateOwnedTypes(String, IEnumerable<IForeignKey>, IndentedStringBuilder)

Generates code for owned entity types.

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

Parameters

builderName
String

The name of the builder variable.

ownerships
IEnumerable<IForeignKey>

The foreign keys identifying each entity type.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

The builder code is added to.

Applies to

GenerateOwnedTypes(String, IEnumerable<IForeignKey>, IndentedStringBuilder)

Generates code for owned entity types.

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

Parameters

builderNameentityTypeBuilderName
String

The name of the builder variable.

ownerships
IEnumerable<IForeignKey>

The foreign keys identifying each entity type.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to