다음을 통해 공유


RelationalEntityTypeBuilderExtensions.HasCheckConstraint 메서드

정의

오버로드

HasCheckConstraint(EntityTypeBuilder, String, String)
사용되지 않음.

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

HasCheckConstraint(OwnedNavigationBuilder, String, String)
사용되지 않음.

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

HasCheckConstraint(EntityTypeBuilder, String, String, Action<CheckConstraintBuilder>)
사용되지 않음.

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

HasCheckConstraint(IConventionEntityTypeBuilder, String, String, Boolean)

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

HasCheckConstraint(OwnedNavigationBuilder, String, String, Action<CheckConstraintBuilder>)
사용되지 않음.

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

HasCheckConstraint<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<CheckConstraintBuilder>)
사용되지 않음.

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

HasCheckConstraint<TEntity>(EntityTypeBuilder<TEntity>, String, String)
사용되지 않음.

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

HasCheckConstraint<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String, String)
사용되지 않음.

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

HasCheckConstraint<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<CheckConstraintBuilder>)
사용되지 않음.

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

HasCheckConstraint(EntityTypeBuilder, String, String)

주의

Configure this using ToTable(t => t.HasCheckConstraint()) instead.

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string sql);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string? sql);
[System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string? sql);
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
[<System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")>]
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function HasCheckConstraint (entityTypeBuilder As EntityTypeBuilder, name As String, sql As String) As EntityTypeBuilder

매개 변수

entityTypeBuilder
EntityTypeBuilder

엔터티 형식 작성기입니다.

name
String

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

sql
String

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

반환

엔터티 형식을 추가로 구성하는 작성기입니다.

특성

설명

자세한 내용과 예제는 데이터베이스 검사 제약 조건을 참조하세요.

적용 대상

HasCheckConstraint(OwnedNavigationBuilder, String, String)

주의

Configure this using ToTable(t => t.HasCheckConstraint()) instead.

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string? sql);
[System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")]
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
[<System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")>]
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(EntityTypeBuilder, String, String, Action<CheckConstraintBuilder>)

주의

Configure this using ToTable(t => t.HasCheckConstraint()) instead.

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string sql, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> buildAction);
[System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string sql, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> buildAction);
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
[<System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")>]
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function HasCheckConstraint (entityTypeBuilder As EntityTypeBuilder, name As String, sql As String, buildAction As Action(Of CheckConstraintBuilder)) As EntityTypeBuilder

매개 변수

entityTypeBuilder
EntityTypeBuilder

엔터티 형식 작성기입니다.

name
String

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

sql
String

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

buildAction
Action<CheckConstraintBuilder>

검사 제약 조건의 구성을 수행하는 작업입니다.

반환

엔터티 형식을 추가로 구성하는 작성기입니다.

특성

설명

자세한 내용과 예제는 데이터베이스 검사 제약 조건을 참조하세요.

적용 대상

HasCheckConstraint(IConventionEntityTypeBuilder, String, String, Boolean)

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string name, string sql, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionCheckConstraintBuilder? HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string name, string? sql, bool fromDataAnnotation = false);
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionCheckConstraintBuilder
<Extension()>
Public Function HasCheckConstraint (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, sql As String, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
<Extension()>
Public Function HasCheckConstraint (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, sql As String, Optional fromDataAnnotation As Boolean = false) As IConventionCheckConstraintBuilder

매개 변수

entityTypeBuilder
IConventionEntityTypeBuilder

엔터티 형식 작성기입니다.

name
String

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

sql
String

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

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

검사 제약 조건이 구성된 null 경우 동일한 작성기가 instance. 그렇지 않으면 입니다.

설명

자세한 내용과 예제는 데이터베이스 검사 제약 조건을 참조하세요.

적용 대상

HasCheckConstraint(OwnedNavigationBuilder, String, String, Action<CheckConstraintBuilder>)

주의

Configure this using ToTable(t => t.HasCheckConstraint()) instead.

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string sql, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> buildAction);
[System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder HasCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string sql, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> buildAction);
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
[<System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")>]
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function HasCheckConstraint (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, sql As String, buildAction As Action(Of CheckConstraintBuilder)) As OwnedNavigationBuilder

매개 변수

ownedNavigationBuilder
OwnedNavigationBuilder

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

name
String

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

sql
String

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

buildAction
Action<CheckConstraintBuilder>

검사 제약 조건의 구성을 수행하는 작업입니다.

반환

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

특성

설명

자세한 내용과 예제는 데이터베이스 검사 제약 조건을 참조하세요.

적용 대상

HasCheckConstraint<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<CheckConstraintBuilder>)

주의

Configure this using ToTable(t => t.HasCheckConstraint()) instead.

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasCheckConstraint<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string sql, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> buildAction) where TEntity : class;
[System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasCheckConstraint<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string sql, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> buildAction) where TEntity : class;
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
[<System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")>]
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function HasCheckConstraint(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, sql As String, buildAction As Action(Of CheckConstraintBuilder)) As EntityTypeBuilder(Of TEntity)

형식 매개 변수

TEntity

구성되는 엔터티 형식입니다.

매개 변수

entityTypeBuilder
EntityTypeBuilder<TEntity>

엔터티 형식 작성기입니다.

name
String

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

sql
String

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

buildAction
Action<CheckConstraintBuilder>

검사 제약 조건의 구성을 수행하는 작업입니다.

반환

엔터티 형식을 추가로 구성하는 작성기입니다.

특성

설명

자세한 내용과 예제는 데이터베이스 검사 제약 조건을 참조하세요.

적용 대상

HasCheckConstraint<TEntity>(EntityTypeBuilder<TEntity>, String, String)

주의

Configure this using ToTable(t => t.HasCheckConstraint()) instead.

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasCheckConstraint<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string sql) where TEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasCheckConstraint<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string? sql) where TEntity : class;
[System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasCheckConstraint<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string? sql) where TEntity : class;
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
[<System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")>]
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function HasCheckConstraint(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, sql As String) As EntityTypeBuilder(Of TEntity)

형식 매개 변수

TEntity

구성되는 엔터티 형식입니다.

매개 변수

entityTypeBuilder
EntityTypeBuilder<TEntity>

엔터티 형식 작성기입니다.

name
String

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

sql
String

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

반환

엔터티 형식을 추가로 구성하는 작성기입니다.

특성

설명

자세한 내용과 예제는 데이터베이스 검사 제약 조건을 참조하세요.

적용 대상

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

주의

Configure this using ToTable(t => t.HasCheckConstraint()) instead.

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> HasCheckConstraint<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? sql) where TOwnerEntity : class where TDependentEntity : class;
[System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> HasCheckConstraint<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? sql) where TOwnerEntity : class where TDependentEntity : class;
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
[<System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")>]
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function HasCheckConstraint(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, sql As String) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

형식 매개 변수

TOwnerEntity

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

TDependentEntity

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

매개 변수

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

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

name
String

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

sql
String

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

반환

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

특성

설명

자세한 내용과 예제는 데이터베이스 검사 제약 조건을 참조하세요.

적용 대상

HasCheckConstraint<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<CheckConstraintBuilder>)

주의

Configure this using ToTable(t => t.HasCheckConstraint()) instead.

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> HasCheckConstraint<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string sql, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> buildAction) where TOwnerEntity : class where TDependentEntity : class;
[System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> HasCheckConstraint<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string sql, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
[<System.Obsolete("Configure this using ToTable(t => t.HasCheckConstraint()) instead.")>]
static member HasCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CheckConstraintBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function HasCheckConstraint(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, sql As String, buildAction As Action(Of CheckConstraintBuilder)) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

형식 매개 변수

TOwnerEntity

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

TDependentEntity

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

매개 변수

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

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

name
String

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

sql
String

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

buildAction
Action<CheckConstraintBuilder>

검사 제약 조건의 구성을 수행하는 작업입니다.

반환

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

특성

설명

자세한 내용과 예제는 데이터베이스 검사 제약 조건을 참조하세요.

적용 대상