RelationalForeignKeyBuilderExtensions 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.
Relational database specific extension methods for relationship builders.
public static class RelationalForeignKeyBuilderExtensions
type RelationalForeignKeyBuilderExtensions = class
Public Module RelationalForeignKeyBuilderExtensions
- Inheritance
-
RelationalForeignKeyBuilderExtensions
Remarks
See Modeling entity types and relationships for more information and examples.
Methods
CanSetConstraintName(IConventionForeignKeyBuilder, String, Boolean) |
Returns a value indicating whether the foreign key constraint name can be set for this relationship from the current configuration source |
CanSetConstraintName(IConventionRelationshipBuilder, String, Boolean) |
Returns a value indicating whether the foreign key constraint name can be set for this relationship from the current configuration source |
HasConstraintName(IConventionForeignKeyBuilder, String, Boolean) |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
HasConstraintName(IConventionRelationshipBuilder, String, Boolean) |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
HasConstraintName(OwnershipBuilder, String) |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
HasConstraintName(ReferenceCollectionBuilder, String) |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
HasConstraintName(ReferenceReferenceBuilder, String) |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
HasConstraintName<TEntity,TDependentEntity>(OwnershipBuilder<TEntity,TDependentEntity>, String) |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
HasConstraintName<TEntity,TRelatedEntity>(ReferenceCollectionBuilder<TEntity,TRelatedEntity>, String) |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
HasConstraintName<TEntity,TRelatedEntity>(ReferenceReferenceBuilder<TEntity,TRelatedEntity>, String) |
Configures the foreign key constraint name for this relationship when targeting a relational database. |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för