OwnershipBuilder Class
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 an ownership.
public class OwnershipBuilder : Microsoft.EntityFrameworkCore.Metadata.Builders.RelationshipBuilderBase
type OwnershipBuilder = class
inherit RelationshipBuilderBase
Public Class OwnershipBuilder
Inherits RelationshipBuilderBase
- Inheritance
- Derived
See Modeling entity types and relationships for more information and examples.
Ownership |
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. |
Ownership |
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. |
Ownership |
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. |
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 RelationshipBuilderBase) |
Dependent |
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 RelationshipBuilderBase) |
Metadata |
The foreign key that represents this relationship. (Inherited from RelationshipBuilderBase) |
Principal |
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 RelationshipBuilderBase) |
Has |
Adds or updates an annotation on the foreign key. If an annotation with the key specified in
|
Has |
Configures the property(s) to use as the foreign key for this relationship. |
Has |
Configures the unique property(s) that this relationship targets. Typically you would only call this method if you want to use a property(s) other than the primary key as the principal property(s). If the specified property(s) is not already a unique constraint (or the primary key) then a new unique constraint will be introduced. |
IInfrastructure<IConvention |
Gets the internal builder being used to configure this relationship. (Inherited from RelationshipBuilderBase) |
IInfrastructure<Internal |
Gets the internal builder being used to configure this relationship. (Inherited from RelationshipBuilderBase) |
Get |
Gets the value from a property that is being hidden using IInfrastructure<T>. This method is typically used by database providers (and other extensions). It is generally not used in application code. |
Has |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
Toode | Versioonid |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Toote „Entity Framework“ tagasiside
Entity Framework on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: