MetadataWorkspace Class

 

Represents the ADO.NET metadata runtime service component that provides support for retrieving metadata from various sources.

Namespace:   System.Data.Metadata.Edm
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

System::Object
  System.Data.Metadata.Edm::MetadataWorkspace

public ref class MetadataWorkspace sealed 

NameDescription
System_CAPS_pubmethodMetadataWorkspace()

Initializes a new instance of the MetadataWorkspace class.

System_CAPS_pubmethodMetadataWorkspace(IEnumerable<String^>^, IEnumerable<Assembly^>^)

Initializes a new instance of the MetadataWorkspace class using the specified paths and assemblies.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticClearCache()

Clears all the metadata cache entries.

System_CAPS_pubmethodCreateEntitySqlParser()

Creates an EntitySqlParser configured to use the CSpace data space.

System_CAPS_pubmethodCreateQueryCommandTree(DbExpression^)

Creates a new DbQueryCommandTree bound to this metadata workspace based on the specified query expression.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEdmSpaceType(EnumType^)

Returns a StructuralType object that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

System_CAPS_pubmethodGetEdmSpaceType(StructuralType^)

Returns a StructuralType object that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

System_CAPS_pubmethodGetEntityContainer(String^, Boolean, DataSpace)

Returns an EntityContainer object by using the specified entity container name and the data model.

System_CAPS_pubmethodGetEntityContainer(String^, DataSpace)

Returns an EntityContainer object by using the specified entity container name and the data model.

System_CAPS_pubmethodGetFunctions(String^, String^, DataSpace)

Returns all the overloads of the functions by using the specified name, namespace name, and data model.

System_CAPS_pubmethodGetFunctions(String^, String^, DataSpace, Boolean)

Returns all the overloads of the functions by using the specified name, namespace name, and data model.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetItem<T>(String^, Boolean, DataSpace)

Returns an item by using the specified identity and the data model.

System_CAPS_pubmethodGetItem<T>(String^, DataSpace)

Returns an item by using the specified identity and the data model.

System_CAPS_pubmethodGetItemCollection(DataSpace)

Gets MetadataWorkspace items.

System_CAPS_pubmethodGetItems(DataSpace)

Gets all the items in the specified data model.

System_CAPS_pubmethodGetItems<T>(DataSpace)

Gets all the items in the specified data model.

System_CAPS_pubmethodGetObjectSpaceType(EnumType^)

Returns a StructuralType object that represents the object space type that matches the type supplied by the parameter edmSpaceType.

System_CAPS_pubmethodGetObjectSpaceType(StructuralType^)

Returns a StructuralType object that represents the object space type that matches the type supplied by the parameter edmSpaceType.

System_CAPS_pubmethodGetPrimitiveTypes(DataSpace)

Returns the list of primitive types in the specified data model.

System_CAPS_pubmethodGetRelevantMembersForUpdate(EntitySetBase^, EntityTypeBase^, Boolean)

Returns members of a given EntitySet/EntityType for which original values are needed when modifying an entity.

System_CAPS_pubmethodGetRequiredOriginalValueMembers(EntitySetBase^, EntityTypeBase^)

Obsolete. Gets original value members from an entity set and entity type.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetType(String^, String^, Boolean, DataSpace)

Returns an EdmType object by using the specified type name, namespace name, and data model.

System_CAPS_pubmethodGetType(String^, String^, DataSpace)

Returns an EdmType object by using the specified type name, namespace name, and data model.

System_CAPS_pubmethodLoadFromAssembly(Assembly^)

Loads metadata from the given assembly.

System_CAPS_pubmethodLoadFromAssembly(Assembly^, Action<String^>^)

Loads metadata from the given assembly.

System_CAPS_pubmethodRegisterItemCollection(ItemCollection^)

Registers the item collection with each associated data model.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTryGetEdmSpaceType(EnumType^, EnumType^%)

Returns a EnumType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

System_CAPS_pubmethodTryGetEdmSpaceType(StructuralType^, StructuralType^%)

Returns a StructuralType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.

System_CAPS_pubmethodTryGetEntityContainer(String^, Boolean, DataSpace, EntityContainer^%)

Returns an EntityContainer object by using the specified entity container name and the data model.

System_CAPS_pubmethodTryGetEntityContainer(String^, DataSpace, EntityContainer^%)

Returns an EntityContainer object by using the specified entity container name and the data model.

System_CAPS_pubmethodTryGetItem<T>(String^, Boolean, DataSpace, T%)

Returns an item by using the specified identity and the data model.

System_CAPS_pubmethodTryGetItem<T>(String^, DataSpace, T%)

Returns an item by using the specified identity and the data model.

System_CAPS_pubmethodTryGetItemCollection(DataSpace, ItemCollection^%)

Tests the retrieval of MetadataWorkspace.

System_CAPS_pubmethodTryGetObjectSpaceType(EnumType^, EnumType^%)

Returns a EnumType object via the out parameter objectSpaceType that represents the type that matches the EdmType supplied by the parameter edmSpaceType.

System_CAPS_pubmethodTryGetObjectSpaceType(StructuralType^, StructuralType^%)

Returns a StructuralType object via the out parameter objectSpaceType that represents the type that matches the EdmType supplied by the parameter edmSpaceType.

System_CAPS_pubmethodTryGetType(String^, String^, Boolean, DataSpace, EdmType^%)

Returns an EdmType object by using the specified type name, namespace name, and data model.

System_CAPS_pubmethodTryGetType(String^, String^, DataSpace, EdmType^%)

Returns an EdmType object by using the specified type name, namespace name, and data model.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticMaximumEdmVersionSupported

Represents the maximum Entity Data Model (EDM) version supported by the Entity Framework runtime.

The T:System.Data.Metadata.Edm.MetadataWorkSpace class provides a central runtime service component that you can use to interact with conceptual model metadata in the context of a given application. For more information, see Metadata Workspace.

.NET Framework
Available since 3.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: