Class OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity>
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Builders
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Instances of this class are returned from methods when using the Microsoft.EntityFrameworkCore.ModelBuilder API and it is not designed to be directly constructed in your application code.
public class OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity> : OwnedNavigationSplitTableBuilder, IInfrastructure<OwnedNavigationBuilder>, IInfrastructure<OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>> where TOwnerEntity : class where TDependentEntity : class
Type Parameters
TOwnerEntity
The entity type owning the relationship.
TDependentEntity
The dependent entity type of the relationship.
- Inheritance
-
OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity>
- Implements
-
IInfrastructure<OwnedNavigationBuilder>IInfrastructure<OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>>
- Inherited Members
Constructors
OwnedNavigationSplitTableBuilder(in StoreObjectIdentifier, OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>)
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.
public OwnedNavigationSplitTableBuilder(in StoreObjectIdentifier storeObject, OwnedNavigationBuilder<TOwnerEntity, TDependentEntity> ownedNavigationBuilder)
Parameters
storeObject
StoreObjectIdentifierownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>
Methods
ExcludeFromMigrations(bool)
Configures the table to be ignored by migrations.
public virtual OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity> ExcludeFromMigrations(bool excluded = true)
Parameters
excluded
boolA value indicating whether the table should be managed by migrations.
Returns
- OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity>
The same builder instance so that multiple calls can be chained.
Remarks
See Database migrations for more information.
HasAnnotation(string, object?)
Adds or updates an annotation on the table. If an annotation with the key specified in annotation
already exists, its value will be updated.
public virtual OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity> HasAnnotation(string annotation, object? value)
Parameters
annotation
stringThe key of the annotation to be added or updated.
value
objectThe value to be stored in the annotation.
Returns
- OwnedNavigationSplitTableBuilder<TOwnerEntity, TDependentEntity>
The same builder instance so that multiple configuration calls can be chained.
Property<TProperty>(Expression<Func<TDependentEntity, TProperty>>)
Maps the property to a column on the current table and returns an object that can be used to provide table-specific configuration if the property is mapped to more than one table.
public virtual ColumnBuilder<TProperty> Property<TProperty>(Expression<Func<TDependentEntity, TProperty>> propertyExpression)
Parameters
propertyExpression
Expression<Func<TDependentEntity, TProperty>>A lambda expression representing the property to be configured (
blog => blog.Url
).
Returns
- ColumnBuilder<TProperty>
An object that can be used to configure the property.
Type Parameters
TProperty