OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> Class
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.
Provides a simple API for configuring a navigation to an owned entity type.
public class OwnedNavigationBuilder<TEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder where TEntity : class where TDependentEntity : class
public class OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder where TOwnerEntity : class where TDependentEntity : class
type OwnedNavigationBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> = class
inherit OwnedNavigationBuilder
type OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> = class
inherit OwnedNavigationBuilder
Public Class OwnedNavigationBuilder(Of TEntity, TDependentEntity)
Inherits OwnedNavigationBuilder
Public Class OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)
Inherits OwnedNavigationBuilder
Type Parameters
- TEntity TOwnerEntity
- TDependentEntity
- Inheritance
Remarks
See Modeling entity types and relationships for more information and examples.
Constructors
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>(EntityType, EntityType, InternalRelationshipBuilder) |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>(IMutableForeignKey) |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
Properties
Builder |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. (Inherited from OwnedNavigationBuilder) |
DependentEntityType |
Gets the dependent entity type used to configure this relationship. (Inherited from OwnedNavigationBuilder) |
Metadata |
The foreign key that represents this ownership. (Inherited from OwnedNavigationBuilder) |
OwnedEntityType |
The owned entity type being configured. (Inherited from OwnedNavigationBuilder) |
PrincipalEntityType |
Gets the principal entity type used to configure this relationship. (Inherited from OwnedNavigationBuilder) |
Methods
FindRelatedEntityType(String, String) |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. (Inherited from OwnedNavigationBuilder) |
FindRelatedEntityType(Type, String) |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. (Inherited from OwnedNavigationBuilder) |
HasAnnotation(String, Object) |
Adds or updates an annotation on the owned entity type. If an annotation with the key specified in
|
HasChangeTrackingStrategy(ChangeTrackingStrategy) |
Configures the ChangeTrackingStrategy to be used for this entity type. This strategy indicates how the context detects changes to properties for an instance of the entity type. |
HasData(IEnumerable<Object>) |
Configures this entity to have seed data. It is used to generate data motion migrations. |
HasData(IEnumerable<Object>) |
Adds seed data to this entity type. It is used to generate data motion migrations. (Inherited from OwnedNavigationBuilder) |
HasData(IEnumerable<TDependentEntity>) |
Adds seed data to this entity type. It is used to generate data motion migrations. |
HasData(Object[]) |
Configures this entity to have seed data. It is used to generate data motion migrations. |
HasData(TDependentEntity[]) |
Adds seed data to this entity type. It is used to generate data motion migrations. |
HasIndex(Expression<Func<TDependentEntity,Object>>) |
Configures an index on the specified properties. If there is an existing index on the given set of properties, then the existing index will be returned for configuration. |
HasIndex(String[]) |
Configures an index on the specified properties. If there is an existing index on the given set of properties, then the existing index will be returned for configuration. |
HasIndex(String[]) |
Configures an index on the specified properties. If there is an existing index on the given set of properties, then the existing index will be returned for configuration. (Inherited from OwnedNavigationBuilder) |
HasKey(Expression<Func<TDependentEntity,Object>>) |
Sets the properties that make up the primary key for this owned entity type. |
HasKey(String[]) |
Sets the properties that make up the primary key for this owned entity type. |
HasKey(String[]) |
Sets the properties that make up the primary key for this owned entity type. (Inherited from OwnedNavigationBuilder) |
HasOne(String, String) |
Configures a relationship where this entity type has a reference that points to a single instance of the other type in the relationship. (Inherited from OwnedNavigationBuilder) |
HasOne(String) |
Configures a relationship where this entity type has a reference that points to a single instance of the other type in the relationship. (Inherited from OwnedNavigationBuilder) |
HasOne(Type, String) |
Configures a relationship where this entity type has a reference that points to a single instance of the other type in the relationship. (Inherited from OwnedNavigationBuilder) |
HasOne<TNewRelatedEntity>(Expression<Func<TDependentEntity,TNewRelatedEntity>>) |
Configures a relationship where this entity type has a reference that points to a single instance of the other type in the relationship. |
HasOne<TNewRelatedEntity>(String) |
Configures a relationship where this entity type has a reference that points to a single instance of the other type in the relationship. |
Ignore(Expression<Func<TDependentEntity,Object>>) |
Excludes the given property from the entity type. This method is typically used to remove properties or navigations from the owned entity type that were added by convention. |
Ignore(String) |
Excludes the given property from the entity type. This method is typically used to remove properties or navigations from the owned entity type that were added by convention. |
IndexerProperty(Type, String) |
Returns an object that can be used to configure a property of the entity type. If no property with the given name exists, then a new property will be added. (Inherited from OwnedNavigationBuilder) |
IndexerProperty<TProperty>(String) |
Returns an object that can be used to configure a property of the entity type. If no property with the given name exists, then a new property will be added. (Inherited from OwnedNavigationBuilder) |
Navigation(String) |
Returns an object that can be used to configure an existing navigation property from the owned type to its owner. It is an error for the navigation property not to exist. (Inherited from OwnedNavigationBuilder) |
Navigation<TNavigation>(Expression<Func<TDependentEntity,IEnumerable<TNavigation>>>) |
Returns an object that can be used to configure an existing navigation property from the owned type to its owner. It is an error for the navigation property not to exist. |
Navigation<TNavigation>(Expression<Func<TDependentEntity,TNavigation>>) |
Returns an object that can be used to configure an existing navigation property from the owned type to its owner. It is an error for the navigation property not to exist. |
OwnsMany(String, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany(String, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. (Inherited from OwnedNavigationBuilder) |
OwnsMany(String, String) |
Configures a relationship where the target entity is owned by (or part of) this entity. (Inherited from OwnedNavigationBuilder) |
OwnsMany(String, Type, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany(String, Type, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. (Inherited from OwnedNavigationBuilder) |
OwnsMany(String, Type, String) |
Configures a relationship where the target entity is owned by (or part of) this entity. (Inherited from OwnedNavigationBuilder) |
OwnsMany(Type, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany(Type, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. (Inherited from OwnedNavigationBuilder) |
OwnsMany(Type, String) |
Configures a relationship where the target entity is owned by (or part of) this entity. (Inherited from OwnedNavigationBuilder) |
OwnsMany<TNewDependentEntity>(Expression<Func<TDependentEntity, IEnumerable<TNewDependentEntity>>>, Action<OwnedNavigationBuilder<TDependentEntity, TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany<TNewDependentEntity>(Expression<Func<TDependentEntity,IEnumerable<TNewDependentEntity>>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany<TNewDependentEntity>(String, Action<OwnedNavigationBuilder<TDependentEntity,TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany<TNewDependentEntity>(String, Expression<Func<TDependentEntity, IEnumerable<TNewDependentEntity>>>, Action<OwnedNavigationBuilder<TDependentEntity, TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany<TNewDependentEntity>(String, Expression<Func<TDependentEntity,IEnumerable<TNewDependentEntity>>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany<TNewDependentEntity>(String, String, Action<OwnedNavigationBuilder<TDependentEntity,TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany<TNewDependentEntity>(String, String) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsMany<TNewDependentEntity>(String) |
Configures a relationship where the target entity is owned by (or part of) this entity. |
OwnsOne(String, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne(String, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. (Inherited from OwnedNavigationBuilder) |
OwnsOne(String, String) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. (Inherited from OwnedNavigationBuilder) |
OwnsOne(String, Type, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne(String, Type, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. (Inherited from OwnedNavigationBuilder) |
OwnsOne(String, Type, String) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. (Inherited from OwnedNavigationBuilder) |
OwnsOne(Type, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne(Type, String, Action<OwnedNavigationBuilder>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. (Inherited from OwnedNavigationBuilder) |
OwnsOne(Type, String) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. (Inherited from OwnedNavigationBuilder) |
OwnsOne<TNewDependentEntity>(Expression<Func<TDependentEntity, TNewDependentEntity>>, Action<OwnedNavigationBuilder<TDependentEntity, TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne<TNewDependentEntity>(Expression<Func<TDependentEntity,TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne<TNewDependentEntity>(String, Action<OwnedNavigationBuilder<TDependentEntity,TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne<TNewDependentEntity>(String, Expression<Func<TDependentEntity, TNewDependentEntity>>, Action<OwnedNavigationBuilder<TDependentEntity, TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne<TNewDependentEntity>(String, Expression<Func<TDependentEntity,TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne<TNewDependentEntity>(String, String, Action<OwnedNavigationBuilder<TDependentEntity,TNewDependentEntity>>) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne<TNewDependentEntity>(String, String) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
OwnsOne<TNewDependentEntity>(String) |
Configures a relationship where the target entity is owned by (or part of) this entity. The target entity key value is always propagated from the entity it belongs to. |
PrimitiveCollection(String) |
Returns an object that can be used to configure a property of the owned type where that property represents a collection of primitive values, such as strings or integers. If no property with the given name exists, then a new property will be added. (Inherited from OwnedNavigationBuilder) |
PrimitiveCollection(Type, String) |
Returns an object that can be used to configure a property of the owned type where that property represents a collection of primitive values, such as strings or integers. If no property with the given name exists, then a new property will be added. (Inherited from OwnedNavigationBuilder) |
PrimitiveCollection<TProperty>(Expression<Func<TDependentEntity,TProperty>>) |
Returns an object that can be used to configure a property of the owned type where that property represents a collection of primitive values, such as strings or integers. |
PrimitiveCollection<TProperty>(String) |
Returns an object that can be used to configure a property of the owned type where that property represents a collection of primitive values, such as strings or integers. If no property with the given name exists, then a new property will be added. (Inherited from OwnedNavigationBuilder) |
Property(String) |
Returns an object that can be used to configure a property of the owned entity type. If no property with the given name exists, then a new property will be added. (Inherited from OwnedNavigationBuilder) |
Property(Type, String) |
Returns an object that can be used to configure a property of the owned entity type. If no property with the given name exists, then a new property will be added. (Inherited from OwnedNavigationBuilder) |
Property<TProperty>(Expression<Func<TDependentEntity,TProperty>>) |
Returns an object that can be used to configure a property of the owned entity type. If no property with the given name exists, then a new property will be added. |
Property<TProperty>(String) |
Returns an object that can be used to configure a property of the owned entity type. If no property with the given name exists, then a new property will be added. (Inherited from OwnedNavigationBuilder) |
UpdateBuilder<T>(Func<T>) |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. (Inherited from OwnedNavigationBuilder) |
UsePropertyAccessMode(PropertyAccessMode) |
Sets the PropertyAccessMode to use for all properties of this entity type. |
WithOwner(Expression<Func<TDependentEntity,TOwnerEntity>>) |
Configures the relationship to the owner. |
WithOwner(String) |
Configures the relationship to the owner. |
Explicit Interface Implementations
IInfrastructure<IConventionEntityTypeBuilder>.Instance |
Gets the internal builder being used to configure the owned entity type. (Inherited from OwnedNavigationBuilder) |
IInfrastructure<InternalEntityTypeBuilder>.Instance |
Gets the internal builder being used to configure the owned entity type. (Inherited from OwnedNavigationBuilder) |
Extension Methods
Applies to
Entity Framework