RelationalEntityTypeExtensions.RemoveCheckConstraint Method

Definition

Overloads

RemoveCheckConstraint(IMutableEntityType, String)

Removes the ICheckConstraint with the given name.

RemoveCheckConstraint(IConventionEntityType, String)

Removes the IConventionCheckConstraint with the given name.

RemoveCheckConstraint(IMutableEntityType, String)

Removes the ICheckConstraint with the given name.

public static bool RemoveCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableCheckConstraint RemoveCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableCheckConstraint? RemoveCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
static member RemoveCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> bool
static member RemoveCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableCheckConstraint
<Extension()>
Public Function RemoveCheckConstraint (entityType As IMutableEntityType, name As String) As Boolean
<Extension()>
Public Function RemoveCheckConstraint (entityType As IMutableEntityType, name As String) As IMutableCheckConstraint

Parameters

entityType
IMutableEntityType

The entity type to remove the check constraint from.

name
String

The check constraint name to be removed.

Returns

The removed check constraint.

Applies to

RemoveCheckConstraint(IConventionEntityType, String)

Removes the IConventionCheckConstraint with the given name.

public static bool RemoveCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionCheckConstraint RemoveCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionCheckConstraint? RemoveCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
static member RemoveCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string -> bool
static member RemoveCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IConventionCheckConstraint
<Extension()>
Public Function RemoveCheckConstraint (entityType As IConventionEntityType, name As String) As Boolean
<Extension()>
Public Function RemoveCheckConstraint (entityType As IConventionEntityType, name As String) As IConventionCheckConstraint

Parameters

entityType
IConventionEntityType

The entity type to remove the check constraint from.

name
String

The check constraint name.

Returns

The removed check constraint.

Applies to