internal bool TryGetEntityContainer(EdmEntityContainerItem item, out EdmEntityContainer container) { if (item != null) { return itemToContainerMap.TryGetValue(item, out container); } container = null; return false; }
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; }