src/Shared/EntityFramework/Core/Metadata/Edm/ModelPerspective.cs
// <summary>
// Look up a type in the target data space based upon the fullName
// </summary>
// <param name="fullName"> fullName </param>
// <param name="ignoreCase"> true for case-insensitive lookup </param>
// <param name="typeUsage"> The type usage object to return </param>
// <returns> True if the retrieval succeeded </returns>
Look up a type in the target data space based upon the fullName
Look up a type in the target data space based upon the fullName
internal override bool TryGetTypeByName(string fullName, bool ignoreCase, out TypeUsage typeUsage)
        {
            Check.NotEmpty(fullName, "fullName");
            typeUsage = null;
            EdmType edmType = null;
            if (MetadataWorkspace.TryGetItem(fullName, ignoreCase, TargetDataspace, out edmType))
            {
                if (Helper.IsPrimitiveType(edmType))
                {
                    typeUsage = MetadataWorkspace.GetCanonicalModelTypeUsage(((PrimitiveType)edmType).PrimitiveTypeKind);
                }
                else
                {
                    typeUsage = TypeUsage.Create(edmType);
                }
            }
            return typeUsage != null;
        }
internal override bool TryGetTypeByName ( string fullName , bool ignoreCase , out TypeUsage typeUsage ) { Check . NotEmpty ( fullName , " " ) ; typeUsage = null ; EdmType edmType = null ; if ( MetadataWorkspace . TryGetItem ( fullName , ignoreCase , TargetDataspace , out edmType ) ) { if ( Helper . IsPrimitiveType ( edmType ) ) { typeUsage = MetadataWorkspace . GetCanonicalModelTypeUsage ( ( ( PrimitiveType ) edmType ) . PrimitiveTypeKind ) ; } else { typeUsage = TypeUsage . Create ( edmType ) ; } } return typeUsage != null ; }
Look up a type in the target data space based upon the fullName
Look up a type in the target data space based upon the fullName
True if the retrieval succeeded
True if the retrieval succeeded
fullName
string
None
ignoreCase
bool
true for case-insensitive lookup
true for case - insensitive lookup
TypeUsage
out
typeUsage
The type usage object to return
The type usage object to return