예제 #1
0
        private ExplorerProperty AddProperty(Property prop)
        {
            ExplorerProperty explorerProp = null;

            explorerProp =
                ModelToExplorerModelXRef.GetNew(_context, prop, this, typeof(ExplorerConceptualProperty)) as ExplorerConceptualProperty;
            _properties.Insert(explorerProp);
            return(explorerProp);
        }
예제 #2
0
        private ExplorerProperty AddProperty(Property prop)
        {
            ExplorerProperty explorerProp = null;

            if (prop.EntityModel.IsCSDL)
            {
                explorerProp =
                    ModelToExplorerModelXRef.GetNew(_context, prop, this, typeof(ExplorerConceptualProperty)) as ExplorerConceptualProperty;
            }
            else
            {
                explorerProp =
                    ModelToExplorerModelXRef.GetNew(_context, prop, this, typeof(ExplorerStorageProperty)) as ExplorerStorageProperty;
            }
            _properties.Insert(explorerProp);
            return(explorerProp);
        }