Table of Contents

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

ownedNavigationBuilder OwnedNavigationBuilder

The navigation builder for the owned type.

name string

The name of the check constraint.

sql string

The 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

ownedNavigationBuilder OwnedNavigationBuilder<TEntity, TDependentEntity>

The navigation builder for the owned type.

name string

The name of the check constraint.

sql string

The logical constraint sql used in the check constraint.

Returns

OwnedNavigationBuilder<TEntity, TDependentEntity>

A builder to further configure the navigation.

Type Parameters

TEntity

The entity type owning the relationship.

TDependentEntity

The dependent entity type of the relationship.