Class CheckConstraint
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Internal
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public class CheckConstraint : ConventionAnnotatable, IMutableCheckConstraint, IMutableAnnotatable, IConventionCheckConstraint, ICheckConstraint, IAnnotatable, IConventionAnnotatable
- Inheritance
-
CheckConstraint
- Implements
-
IMutableAnnotatableIAnnotatableIConventionAnnotatable
Constructors
CheckConstraint(IMutableEntityType, string, string, ConfigurationSource)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public CheckConstraint(IMutableEntityType entityType, string name, string sql, ConfigurationSource configurationSource)
Parameters
Properties
EntityType
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual IEntityType EntityType { get; }
Property Value
- IEntityType
Name
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual string Name { get; }
Property Value
Sql
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual string Sql { get; }
Property Value
Methods
FindCheckConstraint(IEntityType, string)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public static ICheckConstraint FindCheckConstraint(IEntityType entityType, string name)
Parameters
entityType
IEntityTypename
string
Returns
GetCheckConstraints(IEntityType)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public static IEnumerable<CheckConstraint> GetCheckConstraints(IEntityType entityType)
Parameters
entityType
IEntityType
Returns
GetConfigurationSource()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual ConfigurationSource GetConfigurationSource()
Returns
- ConfigurationSource
RemoveCheckConstraint(IMutableEntityType, string)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public static CheckConstraint RemoveCheckConstraint(IMutableEntityType entityType, string name)
Parameters
entityType
IMutableEntityTypename
string
Returns
ToString()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public override string ToString()
Returns
UpdateConfigurationSource(ConfigurationSource)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual void UpdateConfigurationSource(ConfigurationSource configurationSource)
Parameters
configurationSource
ConfigurationSource