157 references to CSpace
System.Data.Entity (114)
System\Data\Common\CommandTrees\DbCommandTree.cs (2)
71effectiveMetadata.RegisterItemCollection(metadata.GetItemCollection(DataSpace.CSpace)); 193DataSpace.CSpace == dataSpace ||
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
1952(BuiltInTypeKind.EdmFunction == item.BuiltInTypeKind && DataSpace.CSpace == item.DataSpace)) 1980return (item.DataSpace == DataSpace.SSpace || item.DataSpace == DataSpace.CSpace);
System\Data\Common\CommandTrees\Internal\Validator.cs (3)
33this.allowedFunctionSpaces = new[] { DataSpace.CSpace, DataSpace.SSpace }; 36this.allowedMetadataSpaces = new[] { DataSpace.SSpace, DataSpace.CSpace }; 40this.allowedMetadataSpaces = new[] { DataSpace.CSpace };
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
112this.extent.EntityContainer.DataSpace != DataSpace.CSpace)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
1345Debug.Assert(memberModelTypeUsage.EdmType.DataSpace == DataSpace.CSpace, "member space must be CSpace");
System\Data\Common\Internal\Materialization\Shaper.cs (3)
299targetKey.EntityContainerName, DataSpace.CSpace); 411Debug.Assert(associationType.DataSpace == DataSpace.CSpace); 703DataSpace.CSpace);
System\Data\Common\Internal\Materialization\Util.cs (2)
22if (workspace.TryGetItemCollection(DataSpace.CSpace, out collection)) 33if (type.DataSpace == DataSpace.CSpace)
System\Data\Common\Utils\CommandHelper.cs (1)
171if (!workspace.TryGetEntityContainer(containerName, DataSpace.CSpace, out entityContainer))
System\Data\Common\Utils\MetadataHelper.cs (1)
352return GetTypeAndSubtypesOf(type, workspace.GetItemCollection(DataSpace.CSpace), includeAbstractTypes);
System\Data\EntityClient\EntityCommand.cs (1)
612resultTree = new DbFunctionCommandTree(this.Connection.GetMetadataWorkspace(), DataSpace.CSpace, function, null, queryParams);
System\Data\EntityClient\EntityCommandDefinition.cs (1)
243Debug.Assert(functionCommandTree.DataSpace == DataSpace.CSpace, "map from CSpace->SSpace function");
System\Data\EntityClient\EntityConnection.cs (4)
105if (!workspace.IsItemCollectionAlreadyRegistered(DataSpace.CSpace)) 448edmItemCollection = (EdmItemCollection)_metadataWorkspace.GetItemCollection(DataSpace.CSpace); 947string edmCacheKey = CreateMetadataCacheKey(artifactLoader.GetOriginalPaths(DataSpace.CSpace), null, null); 969Debug.Assert(workspace.IsItemCollectionAlreadyRegistered(DataSpace.CSpace), "C-Space must be loaded before loading S or C-S space");
System\Data\EntityClient\EntityProviderServices.cs (1)
58if (commandTree.DataSpace != DataSpace.CSpace)
System\Data\EntityKey.cs (1)
388.GetEntityContainer(_entityContainerName, DataSpace.CSpace)
System\Data\EntityModel\SchemaObjectModel\RowTypeElement.cs (1)
108rowType.DataSpace = DataSpace.CSpace;
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (4)
229dataSpace = DataSpace.CSpace; 233dataSpace = DataSpace.CSpace; 237dataSpace = DataSpace.CSpace; 241dataSpace = DataSpace.CSpace;
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (4)
83if (typeSpace == DataSpace.CSpace) 242Debug.Assert(typeSpace == DataSpace.CSpace || typeSpace == DataSpace.OSpace || Helper.IsRowType(edmType) || Helper.IsCollectionType(edmType)); 505Debug.Assert(edmMember.DeclaringType.DataSpace == DataSpace.CSpace, "the cspace member is not on a cspace type"); 834Debug.Assert(cspaceItem.DataSpace == DataSpace.CSpace, "ContainsMap: It must be a CSpace item");
System\Data\Mapping\StorageMappingItemCollection.cs (4)
307if (typeSpace != DataSpace.CSpace) 324if (typeSpace != DataSpace.CSpace) 362if (typeSpace != DataSpace.CSpace) 383if (typeSpace != DataSpace.CSpace)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
83EntityContainer counterpartContainer = container.DataSpace == DataSpace.CSpace ? 501if (!workspace.TryGetItem<EntityContainer>(entityContainerName, DataSpace.CSpace, out entityContainer))
System\Data\Mapping\ViewGeneration\GeneratedView.cs (1)
208Debug.Assert(m_extent.EntityContainer.DataSpace == DataSpace.CSpace, "Internal Tree should be asked only for query view");
System\Data\Metadata\ClrPerspective.cs (4)
30: base(metadataWorkspace, DataSpace.CSpace) 104PrimitiveType primitiveType = this.MetadataWorkspace.GetMappedPrimitiveType(((PrimitiveType)map.EdmItem).PrimitiveTypeKind, DataSpace.CSpace); 112Debug.Assert(((GlobalItem)map.EdmItem).DataSpace == DataSpace.CSpace); 134if (!MetadataWorkspace.TryGetEntityContainer(defaultContainerName, DataSpace.CSpace, out container))
System\Data\Metadata\Converter.cs (5)
39dataSpace: DataSpace.CSpace); 55dataSpace: DataSpace.CSpace); 151if (convertedItemCache.ItemCollection.DataSpace == DataSpace.CSpace) 1056DataSpace.CSpace); 1337return DataSpace.CSpace;
System\Data\Metadata\Edm\EdmFunction.cs (1)
286return this.DataSpace == DataSpace.CSpace && !IsCachedStoreFunction && !IsFromProviderManifest && !IsFunctionImport;
System\Data\Metadata\Edm\EnumType.cs (1)
67Debug.Assert(dataSpace == DataSpace.CSpace || dataSpace == DataSpace.OSpace, "Enums can be only defined in CSpace or OSpace.");
System\Data\Metadata\Edm\MetadataItem.cs (2)
203case MetadataFlags.CSpace: return DataSpace.CSpace; 218case DataSpace.CSpace: return MetadataFlags.CSpace;
System\Data\Metadata\Edm\MetadataItem_Static.cs (2)
496EdmType.Initialize(builtInType, name, EdmConstants.EdmNamespace, DataSpace.CSpace, isAbstract, baseType); 532DataSpace.CSpace,
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (1)
217DataSpace.CSpace,
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (2)
86DataSpace.CSpace, 167DataSpace.CSpace,
System\Data\Metadata\Edm\TypeUsage.cs (2)
405if (edmType.DataSpace == DataSpace.CSpace || edmType.DataSpace == DataSpace.OSpace) 432System.Diagnostics.Debug.Assert(((RefType)edmType).ElementType.DataSpace == DataSpace.CSpace);
System\Data\Metadata\EdmItemCollection.cs (7)
46: base(DataSpace.CSpace) 67: base(DataSpace.CSpace) 80: base(DataSpace.CSpace) 90: base(DataSpace.CSpace) 114: base(DataSpace.CSpace) 126readers = composite.CreateReaders(DataSpace.CSpace); 128composite.GetPaths(DataSpace.CSpace),
System\Data\Metadata\MetadataArtifactLoader.cs (1)
408if (dataSpace == DataSpace.CSpace)
System\Data\Metadata\MetadataArtifactLoaderCompositeFile.cs (1)
172case DataSpace.CSpace:
System\Data\Metadata\MetadataCache.cs (3)
638List<XmlReader> readers = loader.CreateReaders(DataSpace.CSpace); 643loader.GetPaths(DataSpace.CSpace) 647loader.CollectFilePermissionPaths(permissionPaths, DataSpace.CSpace);
System\Data\Metadata\MetadataWorkspace.cs (12)
86DataSpace dataSpace = DataSpace.CSpace; 148/// Create an <see cref="eSQL.EntitySqlParser"/> configured to use the <see cref="DataSpace.CSpace"/> data space. 165return new DbQueryCommandTree(this, DataSpace.CSpace, query); 203case DataSpace.CSpace: 260if (collection.DataSpace == DataSpace.CSpace) 300case DataSpace.CSpace: 370if (!TryGetItemCollection(DataSpace.CSpace, out itemCollection)) 406TryGetItemCollection(DataSpace.CSpace, out edmItemCollection); 906case DataSpace.CSpace: 1033if (edmSpaceType.DataSpace != DataSpace.CSpace) 1210ItemCollection collection = GetItemCollection(DataSpace.CSpace, true); 1437if (entitySet.EntityContainer.DataSpace != DataSpace.CSpace)
System\Data\Metadata\ModelPerspective.cs (1)
27: base(metadataWorkspace, DataSpace.CSpace)
System\Data\Metadata\ObjectHelper.cs (3)
145Debug.Assert(edmProperty.TypeUsage.EdmType.DataSpace == DataSpace.CSpace, "cspace property must have a cspace type"); 206Debug.Assert(cspaceType.EdmType.DataSpace == DataSpace.CSpace, "cspace property must have a cspace type"); 207Debug.Assert(storeType.EdmType.DataSpace == DataSpace.CSpace, "storeType type usage must have a sspace type");
System\Data\Metadata\ObjectItemCollection.cs (1)
575Debug.Assert(DataSpace.CSpace == cspaceType.DataSpace, "DataSpace should be CSpace");
System\Data\Metadata\Perspective.cs (2)
159if (m_targetDataspace == DataSpace.CSpace) 209primitiveType = m_metadataWorkspace.GetMappedPrimitiveType(primitiveTypeKind, DataSpace.CSpace);
System\Data\Metadata\StoreItemCollection.cs (1)
403DataSpace.CSpace,
System\Data\Metadata\TypeHelpers.cs (2)
53if (pType.DataSpace != DataSpace.CSpace) 841bool isCanonicalFunction = (function.DataSpace == DataSpace.CSpace && function.NamespaceName == EdmConstants.EdmNamespace);
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
2424relationshipType = context.MetadataWorkspace.GetItem<EdmType>(_navigation.RelationshipName, DataSpace.CSpace);
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
827ownerKey.EntityContainerName, DataSpace.CSpace);
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (2)
83DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.ObjectContext.MetadataWorkspace, DataSpace.CSpace, queryExpression); 113DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.ObjectContext.MetadataWorkspace, DataSpace.CSpace, queryExpression);
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
191DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.ObjectContext.MetadataWorkspace, DataSpace.CSpace, queryExpression);
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
207return (EdmItemCollection)_funcletizer.RootContext.MetadataWorkspace.GetItemCollection(DataSpace.CSpace, true);
System\Data\Objects\Internal\EntitySqlQueryState.cs (1)
195DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.ObjectContext.MetadataWorkspace, DataSpace.CSpace, queryExpression);
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
200AssociationType relationship = this.Metadata.GetItem<AssociationType>(property.RelationshipType.FullName, DataSpace.CSpace);
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
605foreach (AssociationType association in _tree.MetadataWorkspace.GetItems<AssociationType>(DataSpace.CSpace))
System\Data\Objects\ObjectContext.cs (6)
1293System.Collections.ObjectModel.ReadOnlyCollection<EntityContainer> entityContainers = this.MetadataWorkspace.GetItems<EntityContainer>(DataSpace.CSpace); 1600Debug.Assert(connectionWorkspace.IsItemCollectionAlreadyRegistered(DataSpace.CSpace) && 1608ItemCollection connectionCSpaceCollection = connectionWorkspace.GetItemCollection(DataSpace.CSpace); 1609ItemCollection contextCSpaceCollection = MetadataWorkspace.GetItemCollection(DataSpace.CSpace); 1847if (!this.MetadataWorkspace.TryGetEntityContainer(entityContainerName, DataSpace.CSpace, out container)) 2230DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.MetadataWorkspace, DataSpace.CSpace, refreshQuery);
System\Data\Objects\ObjectViewFactory.cs (1)
275Debug.Assert(typeUsage.EdmType.DataSpace == DataSpace.CSpace, String.Format(System.Globalization.CultureInfo.InvariantCulture, "Expected EdmType.DataSpace to be C-Space, but instead it is {0}.", typeUsage.EdmType.DataSpace.ToString()));
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
194(EdmItemCollection)workspace.GetItemCollection(DataSpace.CSpace), init, members);
System\Data\Query\InternalTrees\RelPropertyHelper.cs (1)
180foreach (RelationshipType relationshipType in ws.GetItems<RelationshipType>(DataSpace.CSpace))
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
310PlanCompiler.Assert(entitySet.EntityContainer.DataSpace == DataSpace.CSpace, "Store entity sets cannot have Query Mapping Views and should not be used with ExpandView");
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
3816Debug.Assert(type.EdmType.DataSpace == DataSpace.CSpace, "Type must be in cSpace");
System.Data.Entity.Design (14)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (3)
60MetadataItemSerializer serializer = new MetadataItemSerializer(writer, collection.DataSpace == DataSpace.CSpace, errorsLookup, schemaVersion); 90MetadataItemSerializer commmentSerializer = new MetadataItemSerializer(commentWriter, collection.DataSpace == DataSpace.CSpace, errorsLookup, schemaVersion); 639string xmlNamespace = EntityFrameworkVersions.GetSchemaNamespace(_schemaVersion, _isModel ? DataSpace.CSpace : DataSpace.SSpace);
System\Data\Entity\Design\EntityCodeGenerator.cs (1)
272dataSpace == DataSpace.CSpace)
System\Data\Entity\Design\EntityFrameworkVersions.cs (3)
45case DataSpace.CSpace: 117Debug.Assert(dataSpace == DataSpace.CSpace || 122case DataSpace.CSpace:
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (7)
327EntityContainer modelEntityContainer = new EntityContainer(_modelEntityContainerName, DataSpace.CSpace); 540var functionImport = new EdmFunction(functionImportName, _modelEntityContainerName, DataSpace.CSpace, new EdmFunctionPayload() 546DataSpace = DataSpace.CSpace, 585var complexType = new ComplexType(name, _namespaceName, DataSpace.CSpace); 799var entityType = new EntityType(name, _namespaceName, DataSpace.CSpace, keyMemberNames, members); 840_namespaceName, false, DataSpace.CSpace); 918DataSpace.CSpace);
System.Data.Services (17)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (17)
117EntityType sourceEntityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace); 301Double currentVersion = ((EdmItemCollection)this.ObjectContext.MetadataWorkspace.GetItemCollection(DataSpace.CSpace)).EdmVersion; 730EntityType entityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace); 854foreach (StructuralType edmType in metadataWorkspace.GetItems<StructuralType>(DataSpace.CSpace)) 867foreach (EntityContainer entityContainer in metadataWorkspace.GetItems<EntityContainer>(DataSpace.CSpace)) 1008foreach (EntityType type in workspace.GetItems<EntityType>(DataSpace.CSpace)) 1062foreach (EntityContainer container in workspace.GetItems<EntityContainer>(DataSpace.CSpace)) 1092foreach (EntityContainer container in workspace.GetItems<EntityContainer>(DataSpace.CSpace)) 1386StructuralType edmType = workspace.GetItem<StructuralType>(resourceType.FullName, DataSpace.CSpace); 2095StructuralType edmType = workspace.GetItem<StructuralType>(baseResourceType.FullName, DataSpace.CSpace); 2307EntityContainer entityContainer = this.ObjectContext.MetadataWorkspace.GetEntityContainer(entityContainerName, DataSpace.CSpace); 2334this.ObjectContext.DefaultContainerName, DataSpace.CSpace, out entityContainer)) 2399EntityType cspaceEntityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace); 2614foreach (AssociationType associationType in this.workspace.GetItems<AssociationType>(DataSpace.CSpace)) 2642foreach (EntityContainer container in this.workspace.GetItems<EntityContainer>(DataSpace.CSpace)) 2727EdmType edmType = this.workspace.GetItem<EdmType>(resourceType.FullName, DataSpace.CSpace); 2787this.edmTypes[resultType.Namespace].Contains(this.workspace.GetItem<EntityType>(resultType.FullName, DataSpace.CSpace))),
System.Web.DynamicData (2)
DynamicData\ModelProviders\EFDataModelProvider.cs (2)
29EntityContainer container = _context.MetadataWorkspace.GetEntityContainer(_context.DefaultContainerName, DataSpace.CSpace); 40ILookup<EntityType, EntityType> derivedTypesLookup = _context.MetadataWorkspace.GetItems<EntityType>(DataSpace.CSpace).ToLookup(e => (EntityType)e.BaseType);
System.Web.Entity (8)
System\Data\WebControls\EntityDataSourceView.cs (7)
362Context.MetadataWorkspace.GetItemCollection(DataSpace.CSpace), 1482cSpaceType = (EntityType)Context.MetadataWorkspace.GetType(_owner.EntityTypeFilter, EntitySet.ElementType.NamespaceName, DataSpace.CSpace); 1483if (!EntityDataSourceUtil.IsTypeOrSubtypeOf(EntitySet.ElementType, cSpaceType, Context.MetadataWorkspace.GetItemCollection(DataSpace.CSpace))) 1521return Context.MetadataWorkspace.GetEntityContainer(ContainerName, DataSpace.CSpace); 1567EntityContainer entityContainer = Context.MetadataWorkspace.GetEntityContainer(ContainerName, DataSpace.CSpace); 1641EntityContainer entityContainer = Context.MetadataWorkspace.GetEntityContainer(ContainerName, DataSpace.CSpace); 1652if (!Context.MetadataWorkspace.TryGetEntityContainer(ContainerName, DataSpace.CSpace, out container))
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (1)
751 < EntityDataSourceUtil.GetTypeAndSubtypesOf(entityType, csWorkspace.GetItemCollection(DataSpace.CSpace), true).Count())
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (2)
402_entityConnection.GetMetadataWorkspace().TryGetItemCollection(DataSpace.CSpace, out itemCollection); 595if (!metadataWorkspace.TryGetItemCollection(DataSpace.CSpace, out edmItemCollection))