RelationalEntityTypeExtensions.GetCheckConstraints 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
GetCheckConstraints(IReadOnlyEntityType) |
Returns all check constraints contained in the entity type. |
GetCheckConstraints(IMutableEntityType) |
Returns all check constraints contained in the entity type. |
GetCheckConstraints(IConventionEntityType) |
Returns all check constraints contained in the entity type. |
GetCheckConstraints(IEntityType) |
Returns all check constraints contained in the entity type. |
GetCheckConstraints(IReadOnlyEntityType)
Returns all check constraints contained in the entity type.
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint> GetCheckConstraints (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetCheckConstraints : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint>
<Extension()>
Public Function GetCheckConstraints (entityType As IReadOnlyEntityType) As IEnumerable(Of IReadOnlyCheckConstraint)
Parameters
- entityType
- IReadOnlyEntityType
The entity type to get the check constraints for.
Returns
Applies to
GetCheckConstraints(IMutableEntityType)
Returns all check constraints contained in the entity type.
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IMutableCheckConstraint> GetCheckConstraints (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member GetCheckConstraints : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableCheckConstraint>
<Extension()>
Public Function GetCheckConstraints (entityType As IMutableEntityType) As IEnumerable(Of IMutableCheckConstraint)
Parameters
- entityType
- IMutableEntityType
The entity type to get the check constraints for.
Returns
Applies to
GetCheckConstraints(IConventionEntityType)
Returns all check constraints contained in the entity type.
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionCheckConstraint> GetCheckConstraints (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetCheckConstraints : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionCheckConstraint>
<Extension()>
Public Function GetCheckConstraints (entityType As IConventionEntityType) As IEnumerable(Of IConventionCheckConstraint)
Parameters
- entityType
- IConventionEntityType
The entity type to get the check constraints for.
Returns
Applies to
GetCheckConstraints(IEntityType)
Returns all check constraints contained in the entity type.
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint> GetCheckConstraints (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetCheckConstraints : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint>
<Extension()>
Public Function GetCheckConstraints (entityType As IEntityType) As IEnumerable(Of ICheckConstraint)
Parameters
- entityType
- IEntityType
The entity type to get the check constraints for.
Returns
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for