Export (0) Print
Expand All

MetadataWorkspace Class

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

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

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

public sealed class MetadataWorkspace

The MetadataWorkspace type exposes the following members.

  NameDescription
Public methodMetadataWorkspace()Initializes a new instance of the MetadataWorkspace class.
Public methodMetadataWorkspace(IEnumerable<String>, IEnumerable<Assembly>)Initializes a new instance of the MetadataWorkspace class.
Top

  NameDescription
Public methodStatic memberClearCacheClears all the metadata cache entries.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEdmSpaceTypeReturns a StructuralType object that represents the EdmType that matches the type supplied by the parameter objectSpaceType.
Public methodGetEntityContainer(String, DataSpace)Returns an EntityContainer object by using the specified entity container name and the data model.
Public methodGetEntityContainer(String, Boolean, DataSpace)Returns an EntityContainer object by using the specified entity container name and the data model.
Public methodGetFunctions(String, String, DataSpace)Returns all the overloads of the functions by using the specified name, namespace name, and data model.
Public methodGetFunctions(String, String, DataSpace, Boolean)Returns all the overloads of the functions by using the specified function name, namespace name, and data model.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetItem<T>(String, DataSpace)Returns an item by using the specified identity and the data model.
Public methodGetItem<T>(String, Boolean, DataSpace)Returns an item by using the specified identity and the data model.
Public methodGetItemCollectionGets MetadataWorkspace items.
Public methodGetItems(DataSpace)Gets all the items in the specified data model.
Public methodGetItems<T>(DataSpace)Gets all the items in the specified data model.
Public methodGetObjectSpaceTypeReturns a StructuralType object that represents the object space type that matches the type supplied by the parameter edmSpaceType.
Public methodGetPrimitiveTypesReturns the list of primitive types in the specified data model.
Public methodGetRequiredOriginalValueMembersGets original value members from an entity set and entity type.
Public methodGetType()Gets the Type of the current instance. (Inherited from Object.)
Public methodGetType(String, String, DataSpace)Returns an EdmType object by using the specified type name, namespace name, and data model.
Public methodGetType(String, String, Boolean, DataSpace)Returns an EdmType object by using the specified type name, namespace name, and data model.
Public methodLoadFromAssembly(Assembly)Loads metadata from the given assembly.
Public methodLoadFromAssembly(Assembly, Action<String>)Loads metadata from the given assembly.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRegisterItemCollectionRegisters the item collection with each associated data model.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetEdmSpaceTypeReturns a StructuralType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.
Public methodTryGetEntityContainer(String, DataSpace, EntityContainer)Returns an EntityContainer object by using the specified entity container name and the data model.
Public methodTryGetEntityContainer(String, Boolean, DataSpace, EntityContainer)Returns an EntityContainer object by using the specified entity container name and the data model.
Public methodTryGetItem<T>(String, DataSpace, T)Returns an item by using the specified identity and the data model.
Public methodTryGetItem<T>(String, Boolean, DataSpace, T)Returns an item by using the specified identity and the data model.
Public methodTryGetItemCollectionTests the retrieval of MetadataWorkspace.
Public methodTryGetObjectSpaceTypeReturns a StructuralType object via the out parameter objectSpaceType that represents the type that matches the EdmType supplied by the parameter edmSpaceType.
Public methodTryGetType(String, String, DataSpace, EdmType)Returns an EdmType object by using the specified type name, namespace name, and data model.
Public methodTryGetType(String, String, Boolean, DataSpace, EdmType)Returns an EdmType object by using the specified type name, namespace name, and data model.
Top

  NameDescription
Public fieldStatic memberMaximumEdmVersionSupportedRepresents the maximum Entity Data Model (EDM) version supported by the Entity Framework runtime.
Top

The 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

Supported in: 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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

Community Additions

ADD
Show:
© 2014 Microsoft