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 using the specified paths and assemblies.
Top

  NameDescription
Public methodStatic memberClearCacheClears all the metadata cache entries.
Public methodCreateEntitySqlParserCreates an EntitySqlParser configured to use the CSpace data space.
Public methodCreateQueryCommandTreeCreates a new DbQueryCommandTree bound to this metadata workspace based on the specified query expression.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetEdmSpaceType(EnumType)Returns a StructuralType object that represents the EdmType that matches the type supplied by the parameter objectSpaceType.
Public methodGetEdmSpaceType(StructuralType)Returns 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 name, namespace name, and data model.
Public methodGetHashCodeServes as the default hash function. (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 methodGetObjectSpaceType(EnumType)Returns a StructuralType object that represents the object space type that matches the type supplied by the parameter edmSpaceType.
Public methodGetObjectSpaceType(StructuralType)Returns 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 methodGetRelevantMembersForUpdate Returns members of a given EntitySet/EntityType for which original values are needed when modifying an entity.
Public methodGetRequiredOriginalValueMembers Obsolete. Gets 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.
Public methodRegisterItemCollectionRegisters the item collection with each associated data model.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetEdmSpaceType(EnumType, EnumType)Returns a EnumType object via the out parameter edmSpaceType that represents the EdmType that matches the type supplied by the parameter objectSpaceType.
Public methodTryGetEdmSpaceType(StructuralType, StructuralType)Returns 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 methodTryGetObjectSpaceType(EnumType, EnumType)Returns a EnumType object via the out parameter objectSpaceType that represents the type that matches the EdmType supplied by the parameter edmSpaceType.
Public methodTryGetObjectSpaceType(StructuralType, StructuralType)Returns 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.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft