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