Beispiel #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);
        }
Beispiel #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);
        }