private IEnumerable <IEdmEntityContainerElement> ComputeElements()
        {
            List <IEdmEntityContainerElement> elements = new List <IEdmEntityContainerElement>();

            // don't import this.Extends' elements.
            // (all IEdmxxx like IEdmEntityContainer should let extension methods handle cross model searches).
            foreach (CsdlEntitySet entitySet in this.entityContainer.EntitySets)
            {
                CsdlSemanticsEntitySet semanticsSet = new CsdlSemanticsEntitySet(this, entitySet);
                elements.Add(semanticsSet);
            }

            foreach (CsdlSingleton singleton in entityContainer.Singletons)
            {
                CsdlSemanticsSingleton semanticsSingleton = new CsdlSemanticsSingleton(this, singleton);
                elements.Add(semanticsSingleton);
            }

            foreach (CsdlOperationImport operationImport in this.entityContainer.OperationImports)
            {
                this.AddOperationImport(operationImport, elements);
            }

            return(elements);
        }
        private IEnumerable<IEdmEntityContainerElement> ComputeElements()
        {
            List<IEdmEntityContainerElement> elements = new List<IEdmEntityContainerElement>();

            // don't import this.Extends' elements.
            // (all IEdmxxx like IEdmEntityContainer should let extension methods handle cross model searches).
            foreach (CsdlEntitySet entitySet in this.entityContainer.EntitySets)
            {
                CsdlSemanticsEntitySet semanticsSet = new CsdlSemanticsEntitySet(this, entitySet);
                elements.Add(semanticsSet);
            }

            foreach (CsdlSingleton singleton in entityContainer.Singletons)
            {
                CsdlSemanticsSingleton semanticsSingleton = new CsdlSemanticsSingleton(this, singleton);
                elements.Add(semanticsSingleton);
            }

            foreach (CsdlOperationImport operationImport in this.entityContainer.OperationImports)
            {
                this.AddOperationImport(operationImport, elements);
            }

            return elements;
        }