OwnedAttribute Class

Definition

Marks a type as owned. All references to this type will be configured as owned entity types.

C#
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class OwnedAttribute : Attribute
Inheritance
OwnedAttribute
Attributes

Remarks

See Modeling entity types and relationships for more information and examples.

Constructors

Applies to

Proizvod Verzije
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0