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