Class RelationalOwnedNavigationBuilderExtensions
- Namespace
- Microsoft.EntityFrameworkCore
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Relational database specific extension methods for Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder.
public static class RelationalOwnedNavigationBuilderExtensions
- Inheritance
-
RelationalOwnedNavigationBuilderExtensions
- Inherited Members
Methods
HasCheckConstraint(OwnedNavigationBuilder, string, string)
Configures a database check constraint when targeting a relational database.
public static OwnedNavigationBuilder HasCheckConstraint(this OwnedNavigationBuilder ownedNavigationBuilder, string name, string sql)
Parameters
ownedNavigationBuilderOwnedNavigationBuilderThe navigation builder for the owned type.
namestringThe name of the check constraint.
sqlstringThe logical constraint sql used in the check constraint.
Returns
- OwnedNavigationBuilder
A builder to further configure the navigation.
HasCheckConstraint<TEntity, TDependentEntity>(OwnedNavigationBuilder<TEntity, TDependentEntity>, string, string)
Configures a database check constraint when targeting a relational database.
public static OwnedNavigationBuilder<TEntity, TDependentEntity> HasCheckConstraint<TEntity, TDependentEntity>(this OwnedNavigationBuilder<TEntity, TDependentEntity> ownedNavigationBuilder, string name, string sql) where TEntity : class where TDependentEntity : class
Parameters
ownedNavigationBuilderOwnedNavigationBuilder<TEntity, TDependentEntity>The navigation builder for the owned type.
namestringThe name of the check constraint.
sqlstringThe logical constraint sql used in the check constraint.
Returns
- OwnedNavigationBuilder<TEntity, TDependentEntity>
A builder to further configure the navigation.
Type Parameters
TEntityThe entity type owning the relationship.
TDependentEntityThe dependent entity type of the relationship.