Sdílet prostřednictvím


RelationalOwnedNavigationBuilderExtensions.HasCheckConstraint Metoda

Definice

Přetížení

HasCheckConstraint(OwnedNavigationBuilder, String, String)

Konfiguruje omezení kontroly databáze při cílení na relační databázi.

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

Konfiguruje omezení kontroly databáze při cílení na relační databázi.

HasCheckConstraint(OwnedNavigationBuilder, String, String)

Konfiguruje omezení kontroly databáze při cílení na relační databázi.

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

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder

Tvůrce navigace pro vlastněný typ.

name
String

Název omezení kontroly.

sql
String

Logické omezení SQL použité v omezení kontroly.

Návraty

Tvůrce pro další konfiguraci navigace.

Platí pro

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

Konfiguruje omezení kontroly databáze při cílení na relační databázi.

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)

Parametry typu

TEntity

Typ entity, která vlastní relaci.

TDependentEntity

Závislý typ entity relace.

Parametry

ownedNavigationBuilder
OwnedNavigationBuilder<TEntity,TDependentEntity>

Tvůrce navigace pro vlastněný typ.

name
String

Název omezení kontroly.

sql
String

Logické omezení SQL použité v omezení kontroly.

Návraty

OwnedNavigationBuilder<TEntity,TDependentEntity>

Tvůrce pro další konfiguraci navigace.

Platí pro