다음을 통해 공유


RelationalOwnedNavigationBuilderExtensions.HasCheckConstraint 메서드

정의

오버로드

HasCheckConstraint(OwnedNavigationBuilder, String, String)

관계형 데이터베이스를 대상으로 지정할 때 데이터베이스 검사 제약 조건을 구성합니다.

HasCheckConstraint<TEntity,TDependentEntity>(OwnedNavigationBuilder<TEntity,TDependentEntity>, String, String)

관계형 데이터베이스를 대상으로 지정할 때 데이터베이스 검사 제약 조건을 구성합니다.

HasCheckConstraint(OwnedNavigationBuilder, String, String)

관계형 데이터베이스를 대상으로 지정할 때 데이터베이스 검사 제약 조건을 구성합니다.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string sql);
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function HasCheckConstraint (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, sql As String) As OwnedNavigationBuilder

매개 변수

ownedNavigationBuilder
OwnedNavigationBuilder

소유 형식에 대한 탐색 작성기입니다.

name
String

검사 제약 조건의 이름입니다.

sql
String

검사 제약 조건에 사용되는 논리 제약 조건 sql입니다.

반환

탐색을 추가로 구성하는 작성기입니다.

적용 대상

HasCheckConstraint<TEntity,TDependentEntity>(OwnedNavigationBuilder<TEntity,TDependentEntity>, String, String)

관계형 데이터베이스를 대상으로 지정할 때 데이터베이스 검사 제약 조건을 구성합니다.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TDependentEntity> HasCheckConstraint<TEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TDependentEntity> ownedNavigationBuilder, string name, string sql) where TEntity : class where TDependentEntity : class;
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> (requires 'Entity : null and 'DependentEntity : null)
<Extension()>
Public Function HasCheckConstraint(Of TEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TEntity, TDependentEntity), name As String, sql As String) As OwnedNavigationBuilder(Of TEntity, TDependentEntity)

형식 매개 변수

TEntity

관계를 소유하는 엔터티 형식입니다.

TDependentEntity

관계의 종속 엔터티 형식입니다.

매개 변수

ownedNavigationBuilder
OwnedNavigationBuilder<TEntity,TDependentEntity>

소유 형식에 대한 탐색 작성기입니다.

name
String

검사 제약 조건의 이름입니다.

sql
String

검사 제약 조건에 사용되는 논리 제약 조건 sql입니다.

반환

OwnedNavigationBuilder<TEntity,TDependentEntity>

탐색을 추가로 구성하는 작성기입니다.

적용 대상