/// <summary>
        ///     Finds a <see cref="IDbFunction" /> that is mapped to the method represented by the given <see cref="MethodInfo" />.
        /// </summary>
        /// <param name="model"> The model to find the function in. </param>
        /// <param name="method"> The <see cref="MethodInfo" /> for the method that is mapped to the function. </param>
        /// <returns> The <see cref="IDbFunction" /> or <c>null</c> if the method is not mapped. </returns>
        public static IDbFunction FindDbFunction([NotNull] this IModel model, [NotNull] MethodInfo method)
        {
            Check.NotNull(model, nameof(model));
            Check.NotNull(method, nameof(method));

            return(DbFunction.FindDbFunction(
                       Check.NotNull(model, nameof(model)),
                       Check.NotNull(method, nameof(method))));
        }
 public static IDbFunction?FindDbFunction([NotNull] this IModel model, [NotNull] string name)
 => DbFunction.FindDbFunction(
     Check.NotNull(model, nameof(model)),
     Check.NotNull(name, nameof(name)));
 /// <summary>
 ///     Finds a function that is mapped to the method represented by the given name.
 /// </summary>
 /// <param name="model"> The model to find the function in. </param>
 /// <param name="name"> The model name of the function. </param>
 /// <returns> The function or <see langword="null" /> if the method is not mapped. </returns>
 public static IReadOnlyDbFunction?FindDbFunction(this IReadOnlyModel model, string name)
 => DbFunction.FindDbFunction(
     Check.NotNull(model, nameof(model)),
     Check.NotNull(name, nameof(name)));
 /// <summary>
 ///     Finds a function that is mapped to the method represented by the given <see cref="MethodInfo" />.
 /// </summary>
 /// <param name="model"> The model to find the function in. </param>
 /// <param name="method"> The <see cref="MethodInfo" /> for the method that is mapped to the function. </param>
 /// <returns> The function or <see langword="null" /> if the method is not mapped. </returns>
 public static IReadOnlyDbFunction?FindDbFunction(this IReadOnlyModel model, MethodInfo method)
 => DbFunction.FindDbFunction(
     Check.NotNull(model, nameof(model)),
     Check.NotNull(method, nameof(method)));