コード例 #1
0
 internal bool TryGetEntityContainer(EdmEntityContainerItem item, out EdmEntityContainer container)
 {
     if (item != null)
     {
         return itemToContainerMap.TryGetValue(item, out container);
     }
     container = null;
     return false;
 }
コード例 #2
0
        internal string GetQualifiedPrefix(EdmEntityContainerItem item)
        {
            Contract.Assert(
                ModelParentMap != null, "Model parent map was not initialized before calling GetQualifiedPrefix?");

            string qualifiedPrefix = null;
            EdmEntityContainer parentContainer = null;
            if (ModelParentMap.TryGetEntityContainer(item, out parentContainer))
            {
                qualifiedPrefix = parentContainer.Name;
            }

            return qualifiedPrefix;
        }