src/Shared/EntityFramework/Core/Metadata/Edm/AspProxy.cs
// <summary>
// This method accepts a string parameter that represents a path in a Web (specifically,
// an ASP.NET) application -- one that starts with a '~' -- and resolves it to a
// canonical file path.
// </summary>
// <remarks>
// The implementation assumes that you cannot have file names that begin with the '~'
// character. (This is a pretty reasonable assumption.) Additionally, the method does not
// test for the existence of a directory or file resource after resolving the path.
// CONSIDER: Caching the reflection results to satisfy subsequent path resolution requests.
// ISSUE: Need to maintain context for a set of path resolution requests, so that we
// don't run into a situation where an incorrect context is applied to a path resolution
// request.
// </remarks>
// <param name="path"> A path in an ASP.NET application </param>
// <returns> A fully-qualified path </returns>
This method accepts a string parameter that represents a path in a Web (specifically,
an ASP.NET) application -- one that starts with a '~' -- and resolves it to a
canonical file path.
This method accepts a string parameter that represents a path in a Web ( specifically an ASP . NET ) application -- one that starts with a ' ~ ' -- and resolves it to a canonical file path .
internal string MapWebPath(string path)
        {
            DebugCheck.NotNull(path);
            path = InternalMapWebPath(path);
            if (path == null)
            {
                var errMsg = Strings.InvalidUseOfWebPath(EdmConstants.WebHomeSymbol);
                throw new InvalidOperationException(errMsg);
            }
            return path;
        }
internal string MapWebPath ( string path ) { DebugCheck . NotNull ( path ) ; path = InternalMapWebPath ( path ) ; if ( path == null ) { var errMsg = Strings . InvalidUseOfWebPath ( EdmConstants . WebHomeSymbol ) ; throw new InvalidOperationException ( errMsg ) ; } return path ; }
This method accepts a string parameter that represents a path in a Web (specifically,
an ASP.NET) application -- one that starts with a '~' -- and resolves it to a
canonical file path.
This method accepts a string parameter that represents a path in a Web ( specifically an ASP . NET ) application -- one that starts with a ' ~ ' -- and resolves it to a canonical file path .
A fully-qualified path
A fully - qualified path
path
string
A path in an ASP.NET application
A path in an ASP . NET application
remarks
The implementation assumes that you cannot have file names that begin with the '~'
character. (This is a pretty reasonable assumption.) Additionally, the method does not
test for the existence of a directory or file resource after resolving the path.
CONSIDER: Caching the reflection results to satisfy subsequent path resolution requests.
ISSUE: Need to maintain context for a set of path resolution requests, so that we
don't run into a situation where an incorrect context is applied to a path resolution
request.
The implementation assumes that you cannot have file names that begin with the ' ~ ' character . ( This is a pretty reasonable assumption . ) Additionally the method does not test for the existence of a directory or file resource after resolving the path . CONSIDER : Caching the reflection results to satisfy subsequent path resolution requests . ISSUE : Need to maintain context for a set of path resolution requests so that we don ' t run into a situation where an incorrect context is applied to a path resolution request .