Class OwnedNavigationSplitViewBuilder
- 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 OwnedNavigationSplitViewBuilder : IInfrastructure<OwnedNavigationBuilder>
- Inheritance
-
OwnedNavigationSplitViewBuilder
- Implements
-
IInfrastructure<OwnedNavigationBuilder>
- Derived
- Inherited Members
Constructors
OwnedNavigationSplitViewBuilder(in StoreObjectIdentifier, OwnedNavigationBuilder)
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 OwnedNavigationSplitViewBuilder(in StoreObjectIdentifier storeObject, OwnedNavigationBuilder ownedNavigationBuilder)
Parameters
storeObject
StoreObjectIdentifierownedNavigationBuilder
OwnedNavigationBuilder
Properties
MappingFragment
The mapping fragment being configured.
public virtual IMutableEntityTypeMappingFragment MappingFragment { get; }
Property Value
Name
The specified view name.
public virtual string Name { get; }
Property Value
Schema
The specified view schema.
public virtual string? Schema { get; }
Property Value
Methods
HasAnnotation(string, object?)
Adds or updates an annotation on the view. If an annotation with the key specified in annotation
already exists, its value will be updated.
public virtual OwnedNavigationSplitViewBuilder 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
- OwnedNavigationSplitViewBuilder
The same builder instance so that multiple configuration calls can be chained.
Property(string)
Maps the property to a column on the current view and returns an object that can be used to provide view-specific configuration if the property is mapped to more than one view.
public virtual ViewColumnBuilder Property(string propertyName)
Parameters
propertyName
stringThe name of the property to be configured.
Returns
- ViewColumnBuilder
An object that can be used to configure the property.
Property<TProperty>(string)
Maps the property to a column on the current view and returns an object that can be used to provide view-specific configuration if the property is mapped to more than one view.
public virtual ViewColumnBuilder<TProperty> Property<TProperty>(string propertyName)
Parameters
propertyName
stringThe name of the property to be configured.
Returns
- ViewColumnBuilder<TProperty>
An object that can be used to configure the property.
Type Parameters
TProperty
The type of the property to be configured.