RelationalEntityTypeExtensions.FindCheckConstraint 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
FindCheckConstraint(IConventionEntityType, String) |
Finds an IConventionCheckConstraint with the given name. |
FindCheckConstraint(IEntityType, String) |
Finds an ICheckConstraint with the given name. |
FindCheckConstraint(IMutableEntityType, String) |
Finds an IMutableCheckConstraint with the given name. |
FindCheckConstraint(IReadOnlyEntityType, String) |
Finds an IReadOnlyCheckConstraint with the given name. |
FindCheckConstraint(IConventionEntityType, String)
Finds an IConventionCheckConstraint with the given name.
public static Microsoft.EntityFrameworkCore.Metadata.IConventionCheckConstraint FindCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionCheckConstraint? FindCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
static member FindCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IConventionCheckConstraint
<Extension()>
Public Function FindCheckConstraint (entityType As IConventionEntityType, name As String) As IConventionCheckConstraint
Parameters
- entityType
- IConventionEntityType
The entity type to find the check constraint for.
- name
- String
The check constraint name.
Returns
The IConventionCheckConstraint or null
if no check constraint with the
given name in the given entity type was found.
Applies to
FindCheckConstraint(IEntityType, String)
Finds an ICheckConstraint with the given name.
public static Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint FindCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string name);
public static Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint? FindCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string name);
static member FindCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint
<Extension()>
Public Function FindCheckConstraint (entityType As IEntityType, name As String) As ICheckConstraint
Parameters
- entityType
- IEntityType
The entity type to find the check constraint for.
- name
- String
The check constraint name.
Returns
The ICheckConstraint or null
if no check constraint with the
given name in the given entity type was found.
Applies to
FindCheckConstraint(IMutableEntityType, String)
Finds an IMutableCheckConstraint with the given name.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableCheckConstraint FindCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableCheckConstraint? FindCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
static member FindCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableCheckConstraint
<Extension()>
Public Function FindCheckConstraint (entityType As IMutableEntityType, name As String) As IMutableCheckConstraint
Parameters
- entityType
- IMutableEntityType
The entity type to find the check constraint for.
- name
- String
The check constraint name.
Returns
The IMutableCheckConstraint or null
if no check constraint with the
given name in the given entity type was found.
Applies to
FindCheckConstraint(IReadOnlyEntityType, String)
Finds an IReadOnlyCheckConstraint with the given name.
public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint? FindCheckConstraint (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType, string name);
static member FindCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint
<Extension()>
Public Function FindCheckConstraint (entityType As IReadOnlyEntityType, name As String) As IReadOnlyCheckConstraint
Parameters
- entityType
- IReadOnlyEntityType
The entity type to find the check constraint for.
- name
- String
The check constraint name.
Returns
The IReadOnlyCheckConstraint or null
if no check constraint with the
given name in the given entity type was found.
Applies to
Entity Framework