CSharpSnapshotGenerator.GenerateOwnedTypes 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
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
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