/// <summary>
        ///     Finds an <see cref="ICheckConstraint" /> with the given name.
        /// </summary>
        /// <param name="entityType"> The entity type to find the check constraint for. </param>
        /// <param name="name"> The check constraint name. </param>
        /// <returns>
        ///     The <see cref="ICheckConstraint" /> or <see langword="null" /> if no check constraint with the
        ///     given name in the given entity type was found.
        /// </returns>
        public static ICheckConstraint FindCheckConstraint(
            [NotNull] this IEntityType entityType, [NotNull] string name)
        {
            Check.NotEmpty(name, nameof(name));

            return(CheckConstraint.FindCheckConstraint(entityType, name));
        }
    /// <summary>
    ///     Finds an <see cref="IReadOnlyCheckConstraint" /> with the given name.
    /// </summary>
    /// <param name="entityType">The entity type to find the check constraint for.</param>
    /// <param name="name">The check constraint name.</param>
    /// <returns>
    ///     The <see cref="IReadOnlyCheckConstraint" /> or <see langword="null" /> if no check constraint with the
    ///     given name in the given entity type was found.
    /// </returns>
    public static IReadOnlyCheckConstraint?FindCheckConstraint(
        this IReadOnlyEntityType entityType,
        string name)
    {
        Check.NotEmpty(name, nameof(name));

        return(CheckConstraint.FindCheckConstraint(entityType, name));
    }
        /// <summary>
        ///     Finds an <see cref="ICheckConstraint" /> with the given name.
        /// </summary>
        /// <param name="model"> The model to find the check constraint in. </param>
        /// <param name="name"> The check constraint name. </param>
        /// <param name="table"> The table that contains the check constraint. </param>
        /// <param name="schema"> The table schema that contains the check constraint. </param>
        /// <returns>
        ///     The <see cref="ICheckConstraint" /> or <c>null</c> if no check constraint with the given name in
        ///     the given schema was found.
        /// </returns>
        public static ICheckConstraint FindCheckConstraint(
            [NotNull] this IModel model, [NotNull] string name, [NotNull] string table, [CanBeNull] string schema = null)
        {
            Check.NotEmpty(name, nameof(name));
            Check.NotEmpty(table, nameof(table));
            Check.NullButNotEmpty(schema, nameof(schema));

            return(CheckConstraint.FindCheckConstraint(model, name, table, schema));
        }