57 references to OSpace
System.Data.Entity (50)
System\Data\Common\CommandTrees\DbCommandTree.cs (2)
67if (metadata.TryGetItemCollection(DataSpace.OSpace, out objectItemCollection)) 192return (DataSpace.OSpace == dataSpace ||
System\Data\Common\Internal\Materialization\Shaper.cs (1)
417oSpaceAssociation = this.Workspace.GetItemCollection(DataSpace.OSpace).GetItem<AssociationType>(associationType.FullName);
System\Data\Common\Internal\Materialization\Util.cs (2)
38ospaceType = workspace.GetMappedPrimitiveType(((PrimitiveType)type).PrimitiveTypeKind, DataSpace.OSpace); 44ospaceType = workspace.GetItem<EdmType>(type.FullName, DataSpace.OSpace);
System\Data\Common\Utils\MetadataHelper.cs (2)
170ObjectItemCollection objectItemCollection = (ObjectItemCollection)workspace.GetItemCollection(DataSpace.OSpace); 907Debug.Assert(sourceEntityType.DataSpace == DataSpace.OSpace && sourceEntityType.ClrType != null, "sourceEntityType must contain an ospace type");
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (5)
111else if (typeSpace == DataSpace.OSpace) 242Debug.Assert(typeSpace == DataSpace.CSpace || typeSpace == DataSpace.OSpace || Helper.IsRowType(edmType) || Helper.IsCollectionType(edmType)); 246if (typeSpace != DataSpace.OSpace) 258else if (typeSpace == DataSpace.OSpace) 506Debug.Assert(objectMember.DeclaringType.DataSpace == DataSpace.OSpace, "the ospace member is not on a cspace type");
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
543if (!workspace.TryGetItemCollection(DataSpace.OSpace, out itemCollection))
System\Data\Metadata\ClrPerspective.cs (1)
98if (this.MetadataWorkspace.TryGetMap(fullName, DataSpace.OSpace, ignoreCase, DataSpace.OCSpace, out map))
System\Data\Metadata\Edm\ComplexType.cs (1)
111DataSpace.OSpace)
System\Data\Metadata\Edm\EntityType.cs (1)
247DataSpace.OSpace)
System\Data\Metadata\Edm\EnumType.cs (2)
67Debug.Assert(dataSpace == DataSpace.CSpace || dataSpace == DataSpace.OSpace, "Enums can be only defined in CSpace or OSpace."); 87base(clrType.Name, clrType.Namespace ?? string.Empty, DataSpace.OSpace)
System\Data\Metadata\Edm\MetadataItem.cs (2)
204case MetadataFlags.OSpace: return DataSpace.OSpace; 219case DataSpace.OSpace: return MetadataFlags.OSpace;
System\Data\Metadata\Edm\PrimitiveType.cs (1)
70DataSpace.OSpace, baseType, providerManifest)
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
185if (Helper.IsPrimitiveType(type) && ((PrimitiveType)type).DataSpace == DataSpace.OSpace)
System\Data\Metadata\Edm\TypeUsage.cs (1)
405if (edmType.DataSpace == DataSpace.CSpace || edmType.DataSpace == DataSpace.OSpace)
System\Data\Metadata\EdmValidator.cs (1)
280item.DataSpace != DataSpace.OSpace && string.Empty == item.NamespaceName)
System\Data\Metadata\MetadataWorkspace.cs (7)
230case DataSpace.OSpace: 363ObjectItemCollection collection = (ObjectItemCollection)GetItemCollection(DataSpace.OSpace); 402if (TryGetItemCollection(DataSpace.OSpace, out collection)) 455ObjectItemCollection ospaceCollection = GetItemCollection(DataSpace.OSpace) as ObjectItemCollection; 909case DataSpace.OSpace: 1149if (objectSpaceType.DataSpace != DataSpace.OSpace) 1266ItemCollection collection = GetItemCollection(DataSpace.OSpace, true);
System\Data\Metadata\ObjectItemCollection.cs (3)
32: base(DataSpace.OSpace) 525if (objectSpaceType.DataSpace != DataSpace.OSpace) 595Debug.Assert(DataSpace.OSpace == edmType.DataSpace, "DataSpace must be OSpace");
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
230AssociationType associationType = new AssociationType(roleAttribute.RelationshipName, roleAttribute.RelationshipNamespaceName, roleAttribute.IsForeignKey, DataSpace.OSpace);
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
698AssociationType ospaceAssociation = new AssociationType(cspaceAssociation.Name, cspaceAssociation.NamespaceName, cspaceAssociation.IsForeignKey, DataSpace.OSpace);
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
2553EntityType entityType = _wrappedOwner.Context.MetadataWorkspace.GetItem<EntityType>(_wrappedOwner.IdentityType.FullName, DataSpace.OSpace);
System\Data\Objects\DataClasses\RelationshipManager.cs (4)
379EntityType entityType = wrappedOwner.Context.MetadataWorkspace.GetItem<EntityType>(wrappedOwner.IdentityType.FullName, DataSpace.OSpace); 493Debug.Assert(sourceEntityType.DataSpace == DataSpace.OSpace && sourceEntityType.ClrType != null, "sourceEntityType must contain an ospace type"); 656return (ObjectItemCollection)wrappedOwner.Context.MetadataWorkspace.GetItemCollection(DataSpace.OSpace); 669mappings.TryGetMap(WrappedOwner.IdentityType.FullName, DataSpace.OSpace, out map))
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\ObjectContext.cs (3)
260if (!_workspace.IsItemCollectionAlreadyRegistered(DataSpace.OSpace)) 2890ObjectItemCollection ospaceItems = (ObjectItemCollection)MetadataWorkspace.GetItemCollection(DataSpace.OSpace); 2963ClrEntityType entityType = MetadataWorkspace.GetItem<ClrEntityType>(clrType.FullName, DataSpace.OSpace);
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (1)
369if (!this.QueryState.ObjectContext.MetadataWorkspace.GetItemCollection(DataSpace.OSpace).TryGetType(clrOfType.Name, clrOfType.Namespace ?? string.Empty, out ofType) ||
System\Data\Objects\ObjectStateManager.cs (2)
313var entityType = MetadataWorkspace.GetItem<ClrEntityType>(identityType.FullName, DataSpace.OSpace); 2984MetadataWorkspace.GetMap(entityType.FullName, DataSpace.OSpace, DataSpace.OCSpace));
System\Data\Objects\ObjectViewFactory.cs (1)
269if (typeUsage.EdmType.DataSpace == DataSpace.OSpace)
System.Data.Services (2)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
966ObjectItemCollection objectItemCollection = (ObjectItemCollection)this.ObjectContext.MetadataWorkspace.GetItemCollection(DataSpace.OSpace); 1045ObjectItemCollection objectItemCollection = (ObjectItemCollection)workspace.GetItemCollection(DataSpace.OSpace);
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFDataModelProvider.cs (1)
32_objectSpaceItems = (ObjectItemCollection)_context.MetadataWorkspace.GetItemCollection(DataSpace.OSpace);
System.Web.Entity (4)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
235var objectItemCollection = (ObjectItemCollection)(ocWorkspace.GetItemCollection(DataSpace.OSpace)); 242var objectItemCollection = (ObjectItemCollection)(ocWorkspace.GetItemCollection(DataSpace.OSpace));
System\Data\WebControls\EntityDataSourceView.cs (2)
302EntityType newOSpaceType = workspace.GetItem<EntityType>(elementType.FullName, DataSpace.OSpace); 1546(ObjectItemCollection)(Context.MetadataWorkspace.GetItemCollection(DataSpace.OSpace));