RelationalEntityTypeExtensions.RemoveCheckConstraint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: