/// <summary> /// Returns all check constraints contained in the entity type. /// </summary> /// <param name="entityType">The entity type to get the check constraints for.</param> public static IEnumerable <ICheckConstraint> GetCheckConstraints(this IEntityType entityType) => CheckConstraint.GetCheckConstraints(entityType).Cast <ICheckConstraint>();
/// <summary> /// Returns all check constraints contained in the entity type. /// </summary> /// <param name="entityType">The entity type to get the check constraints for.</param> public static IEnumerable <IReadOnlyCheckConstraint> GetCheckConstraints(this IReadOnlyEntityType entityType) => CheckConstraint.GetCheckConstraints(entityType);
/// <summary> /// Returns all <see cref="IMutableCheckConstraint" /> contained in the entity type. /// </summary> /// <param name="entityType"> The entity type to get the check constraints for. </param> public static IEnumerable <IMutableCheckConstraint> GetCheckConstraints([NotNull] this IMutableEntityType entityType) => CheckConstraint.GetCheckConstraints(entityType);
/// <summary> /// Returns all <see cref="IConventionCheckConstraint" /> contained in the entity type. /// </summary> /// <param name="entityType"> The entity type to get the check constraints for. </param> public static IEnumerable <IConventionCheckConstraint> GetCheckConstraints([NotNull] this IConventionEntityType entityType) => CheckConstraint.GetCheckConstraints(entityType);
/// <summary> /// Returns all <see cref="ICheckConstraint" />s contained in the model. /// </summary> /// <param name="model"> The model to get the check constraints in. </param> public static IReadOnlyList <ICheckConstraint> GetCheckConstraints([NotNull] this IModel model) => CheckConstraint.GetCheckConstraints(model);