Share via


ModelBuilder.Owned Method

Definition

Overloads

Owned(Type)

Marks an entity type as owned. All references to this type will be configured as separate owned type instances.

Owned<T>()

Marks an entity type as owned. All references to this type will be configured as separate owned type instances.

Owned(Type)

Marks an entity type as owned. All references to this type will be configured as separate owned type instances.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedEntityTypeBuilder Owned (Type type);
abstract member Owned : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedEntityTypeBuilder
override this.Owned : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedEntityTypeBuilder
Public Overridable Function Owned (type As Type) As OwnedEntityTypeBuilder

Parameters

type
Type

The entity type to be configured.

Returns

Remarks

See Owned types in EF Core for more information and examples.

Applies to

Owned<T>()

Marks an entity type as owned. All references to this type will be configured as separate owned type instances.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedEntityTypeBuilder<T> Owned<T> () where T : class;
abstract member Owned : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedEntityTypeBuilder<'T (requires 'T : null)> (requires 'T : null)
override this.Owned : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedEntityTypeBuilder<'T (requires 'T : null)> (requires 'T : null)
Public Overridable Function Owned(Of T As Class) () As OwnedEntityTypeBuilder(Of T)

Type Parameters

T

The entity type to be configured.

Returns

Remarks

See Owned types in EF Core for more information and examples.

Applies to