예제 #1
0
        protected override void DoNormalize()
        {
            var normalizedName = EntityTypeNameNormalizer.NameNormalizer(this, LocalName.Value);

            Debug.Assert(null != normalizedName, "Null NormalizedName for refName " + LocalName.Value);
            NormalizedName = (normalizedName != null ? normalizedName.Symbol : Symbol.EmptySymbol);
            base.DoNormalize();
        }
예제 #2
0
        internal static NormalizedName FunctionImportEntityTypeNameNormalizer(EFElement parent, string refName)
        {
            Debug.Assert(parent != null, "parent should not be null");

            if (refName == null)
            {
                return(null);
            }

            // since the format of ReturnType is "Collection(...)", we need to unwrap the refName first
            // Make sure that  we extract a fully qualified name for refName.
            refName = ModelHelper.UnwrapCollectionAroundFunctionImportReturnType(refName, true);
            return(EntityTypeNameNormalizer.NameNormalizer(parent, refName));
        }