src/Shared/EntityFramework/Core/Metadata/Edm/Perspective.cs
// <summary>
// Returns the function import in the target space, for the given entity container.
// </summary>
Returns the function import in the target space, for the given entity container.
Returns the function import in the target space for the given entity container .
internal virtual bool TryGetFunctionImport(
            EntityContainer entityContainer, String functionImportName, bool ignoreCase, out EdmFunction functionImport)
        {
            functionImport = null;
            if (ignoreCase)
            {
                functionImport =
                    entityContainer.FunctionImports.Where(
                        fi => String.Equals(fi.Name, functionImportName, StringComparison.OrdinalIgnoreCase)).SingleOrDefault();
            }
            else
            {
                functionImport = entityContainer.FunctionImports.Where(fi => fi.Name == functionImportName).SingleOrDefault();
            }
            return functionImport != null;
        }
internal virtual bool TryGetFunctionImport ( EntityContainer entityContainer , String functionImportName , bool ignoreCase , out EdmFunction functionImport ) { functionImport = null ; if ( ignoreCase ) { functionImport = entityContainer . FunctionImports . Where ( fi => String . Equals ( fi . Name , functionImportName , StringComparison . OrdinalIgnoreCase ) ) . SingleOrDefault ( ) ; } else { functionImport = entityContainer . FunctionImports . Where ( fi => fi . Name == functionImportName ) . SingleOrDefault ( ) ; } return functionImport != null ; }
Returns the function import in the target space, for the given entity container.
Returns the function import in the target space for the given entity container .
// There are no entity containers in the OSpace. So there is no mapping involved. // Hence the name should be a valid name in the CSpace.
entityContainer
EntityContainer
functionImportName
String
ignoreCase
bool
EdmFunction
out