src/Shared/EntityFramework/Core/Metadata/Edm/ItemCollection.cs
// <summary>
// Gets the function as specified by the function key.
// All parameters are assumed to be <see cref="ParameterMode.In" />.
// </summary>
// <param name="functionName"> Name of the function </param>
// <param name="parameterTypes"> types of the parameters </param>
// <param name="ignoreCase"> true for case-insensitive lookup </param>
// <param name="function"> The function that needs to be returned </param>
// <returns> The function as specified in the function key or null </returns>
// <exception cref="System.ArgumentNullException">if functionName or parameterTypes argument is null</exception>
// <exception cref="System.ArgumentException">if no function is found with the given name or with given input parameters</exception>
Gets the function as specified by the function key.
All parameters are assumed to be .
Gets the function as specified by the function key . All parameters are assumed to be .
internal bool TryGetFunction(string functionName, TypeUsage[] parameterTypes, bool ignoreCase, out EdmFunction function)
        {
            Check.NotNull(functionName, "functionName");
            Check.NotNull(parameterTypes, "parameterTypes");
            var functionIdentity = EdmFunction.BuildIdentity(functionName, parameterTypes);
            GlobalItem item = null;
            function = null;
            if (TryGetValue(functionIdentity, ignoreCase, out item)
                && Helper.IsEdmFunction(item))
            {
                function = (EdmFunction)item;
                return true;
            }
            return false;
        }
internal bool TryGetFunction ( string functionName , TypeUsage [ ] parameterTypes , bool ignoreCase , out EdmFunction function ) { Check . NotNull ( functionName , " " ) ; Check . NotNull ( parameterTypes , " " ) ; var functionIdentity = EdmFunction . BuildIdentity ( functionName , parameterTypes ) ; GlobalItem item = null ; function = null ; if ( TryGetValue ( functionIdentity , ignoreCase , out item ) && Helper . IsEdmFunction ( item ) ) { function = ( EdmFunction ) item ; return true ; } return false ; }
Gets the function as specified by the function key.
Gets the function as specified by the function key .
The function as specified in the function key or null
The function as specified in the function key or null
if functionName or parameterTypes argument is null
if functionName or parameterTypes argument is null
if no function is found with the given name or with given input parameters
if no function is found with the given name or with given input parameters
functionName
string
Name of the function
Name of the function
parameterTypes
TypeUsage[]
types of the parameters
types of the parameters
ignoreCase
bool
true for case-insensitive lookup
true for case - insensitive lookup
EdmFunction
out
function
The function that needs to be returned
The function that needs to be returned