private ExplorerProperty AddProperty(Property prop) { ExplorerProperty explorerProp = null; explorerProp = ModelToExplorerModelXRef.GetNew(_context, prop, this, typeof(ExplorerConceptualProperty)) as ExplorerConceptualProperty; _properties.Insert(explorerProp); return(explorerProp); }
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); }