10 writes to DataSpace
System.Data.Entity (10)
System\Data\Common\DbXmlEnabledProviderManifest.cs (1)
118type.DataSpace = DataSpace.SSpace;
System\Data\EntityModel\SchemaObjectModel\RowTypeElement.cs (2)
108rowType.DataSpace = DataSpace.CSpace; 113rowType.DataSpace = DataSpace.SSpace;
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (1)
416objectMap.DataSpace = DataSpace.OCSpace;
System\Data\Mapping\StorageMappingItemCollection.cs (1)
704storageMap.DataSpace = DataSpace.CSSpace;
System\Data\Metadata\Edm\CollectionType.cs (1)
30this.DataSpace = elementType.DataSpace;
System\Data\Metadata\Edm\EdmType.cs (1)
265edmType.DataSpace = dataSpace;
System\Data\Metadata\Edm\EntityContainer.cs (1)
36this.DataSpace = dataSpace;
System\Data\Metadata\Edm\StructuralType.cs (2)
116this.DataSpace = member.TypeUsage.EdmType.DataSpace; 122this.DataSpace = (DataSpace)(-1);
70 references to DataSpace
System.Data.Entity (70)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
1952(BuiltInTypeKind.EdmFunction == item.BuiltInTypeKind && DataSpace.CSpace == item.DataSpace)) 1980return (item.DataSpace == DataSpace.SSpace || item.DataSpace == DataSpace.CSpace);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (4)
50if (_metadata.TryGetEntityContainer(entitySet.EntityContainer.Name, entitySet.EntityContainer.DataSpace, out container)) 75if (DataSpace.SSpace == function.DataSpace) 82function.DataSpace, 160if (!_metadata.TryGetType(type.Name, type.NamespaceName, type.DataSpace, out retType) ||
System\Data\Common\CommandTrees\Internal\Validator.cs (4)
57return ValidateMetadata(entitySet, base.VisitEntitySet, es => es.EntityContainer.DataSpace, this.allowedMetadataSpaces); 63return ValidateMetadata(function, base.VisitFunction, func => func.DataSpace, this.allowedFunctionSpaces); 68return ValidateMetadata(type, base.VisitType, et => et.DataSpace, this.allowedMetadataSpaces); 73return ValidateMetadata(type, base.VisitTypeUsage, tu => tu.EdmType.DataSpace, this.allowedMetadataSpaces);
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 (1)
411Debug.Assert(associationType.DataSpace == DataSpace.CSpace);
System\Data\Common\Internal\Materialization\Util.cs (1)
33if (type.DataSpace == DataSpace.CSpace)
System\Data\Common\Utils\MetadataHelper.cs (1)
907Debug.Assert(sourceEntityType.DataSpace == DataSpace.OSpace && sourceEntityType.ClrType != null, "sourceEntityType must contain an ospace type");
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (4)
205DataSpace typeSpace = item.DataSpace; 505Debug.Assert(edmMember.DeclaringType.DataSpace == DataSpace.CSpace, "the cspace member is not on a cspace type"); 506Debug.Assert(objectMember.DeclaringType.DataSpace == DataSpace.OSpace, "the ospace 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 (2)
361DataSpace typeSpace = item.DataSpace; 382DataSpace typeSpace = item.DataSpace;
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
83EntityContainer counterpartContainer = container.DataSpace == DataSpace.CSpace ? 357(extent.EntityContainer.DataSpace==DataSpace.SSpace)?"Table":"EntitySet",extent.Name));
System\Data\Mapping\StorageMappingItemLoader.cs (1)
3244if (conditionMember.DeclaringType.DataSpace == DataSpace.SSpace)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
1048actualContainer.Name, actualContainer.DataSpace, out referenceContainer);
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\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
180if ((cellQuery.Extent.EntityContainer.DataSpace == DataSpace.SSpace)
System\Data\Mapping\ViewValidator.cs (1)
247if ((targetContainer.DataSpace != DataSpace.SSpace))
System\Data\Metadata\ClrPerspective.cs (1)
112Debug.Assert(((GlobalItem)map.EdmItem).DataSpace == DataSpace.CSpace);
System\Data\Metadata\Edm\CollectionType.cs (2)
30this.DataSpace = elementType.DataSpace; 40EdmConstants.TransientNamespace, elementType.EdmType.DataSpace)
System\Data\Metadata\Edm\EdmFunction.cs (1)
286return this.DataSpace == DataSpace.CSpace && !IsCachedStoreFunction && !IsFromProviderManifest && !IsFunctionImport;
System\Data\Metadata\Edm\ItemCollection.cs (1)
90Debug.Assert(item.DataSpace == this.DataSpace);
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
185if (Helper.IsPrimitiveType(type) && ((PrimitiveType)type).DataSpace == DataSpace.OSpace)
System\Data\Metadata\Edm\RefType.cs (1)
30EdmConstants.TransientNamespace, entityType.DataSpace)
System\Data\Metadata\Edm\StructuralType.cs (6)
107Debug.Assert(this.DataSpace == member.TypeUsage.EdmType.DataSpace || this.BuiltInTypeKind == BuiltInTypeKind.RowType, "Wrong member type getting added in structural type"); 116this.DataSpace = member.TypeUsage.EdmType.DataSpace; 120else if (this.DataSpace != (DataSpace)(-1) && member.TypeUsage.EdmType.DataSpace != this.DataSpace)
System\Data\Metadata\Edm\TypeUsage.cs (3)
405if (edmType.DataSpace == DataSpace.CSpace || edmType.DataSpace == DataSpace.OSpace) 432System.Diagnostics.Debug.Assert(((RefType)edmType).ElementType.DataSpace == DataSpace.CSpace);
System\Data\Metadata\EdmItemCollection.cs (1)
318if (globalItem.BuiltInTypeKind == BuiltInTypeKind.EdmFunction && globalItem.DataSpace == DataSpace.SSpace)
System\Data\Metadata\EdmValidator.cs (1)
280item.DataSpace != DataSpace.OSpace && string.Empty == item.NamespaceName)
System\Data\Metadata\MetadataWorkspace.cs (3)
1033if (edmSpaceType.DataSpace != DataSpace.CSpace) 1149if (objectSpaceType.DataSpace != DataSpace.OSpace) 1437if (entitySet.EntityContainer.DataSpace != DataSpace.CSpace)
System\Data\Metadata\ObjectHelper.cs (5)
145Debug.Assert(edmProperty.TypeUsage.EdmType.DataSpace == DataSpace.CSpace, "cspace property must have a cspace type"); 146Debug.Assert(columnProperty.TypeUsage.EdmType.DataSpace == DataSpace.SSpace, "sspace type usage must have a sspace type"); 173if (sspaceType.EdmType.DataSpace == DataSpace.SSpace) 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 (3)
525if (objectSpaceType.DataSpace != DataSpace.OSpace) 575Debug.Assert(DataSpace.CSpace == cspaceType.DataSpace, "DataSpace should be CSpace"); 595Debug.Assert(DataSpace.OSpace == edmType.DataSpace, "DataSpace must be OSpace");
System\Data\Metadata\StoreItemCollection.cs (1)
366Debug.Assert(sTypeFunction.DataSpace == Edm.DataSpace.SSpace, "sTypeFunction.DataSpace == Edm.DataSpace.SSpace");
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\RelationshipManager.cs (1)
493Debug.Assert(sourceEntityType.DataSpace == DataSpace.OSpace && sourceEntityType.ClrType != null, "sourceEntityType must contain an ospace type");
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
155Debug.Assert(ospaceEntityType.DataSpace == DataSpace.OSpace, "ospaceEntityType.DataSpace must be OSpace");
System\Data\Objects\Internal\LazyLoadBehavior.cs (1)
117Debug.Assert(ospaceEntityType.DataSpace == DataSpace.OSpace, "ospaceEntityType.DataSpace must be OSpace");
System\Data\Objects\ObjectViewFactory.cs (3)
269if (typeUsage.EdmType.DataSpace == DataSpace.OSpace) 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\PlanCompiler\PreProcessor.cs (2)
310PlanCompiler.Assert(entitySet.EntityContainer.DataSpace == DataSpace.CSpace, "Store entity sets cannot have Query Mapping Views and should not be used with ExpandView"); 2119if (scanTableOp.Table.TableMetadata.Extent.EntityContainer.DataSpace == DataSpace.SSpace)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
3816Debug.Assert(type.EdmType.DataSpace == DataSpace.CSpace, "Type must be in cSpace");