MetadataWorkspace.GetObjectSpaceType Method

 

The method returns the OSpace enumeration type mapped to the specified Edm Space Type.

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

NameDescription
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 .


MetadataWorkspace.GetObjectSpaceType Method (EnumType)

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

public virtual EnumType GetObjectSpaceType(
	EnumType edmSpaceType
)

Parameters

edmSpaceType
Type: System.Data.Entity.Core.Metadata.Edm.EnumType

A EnumType object that represents the EdmType .

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.EnumType

A StructuralType object that represents the Object space type. If there is no matched type, this method returns null.


MetadataWorkspace.GetObjectSpaceType Method (StructuralType)

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

public virtual StructuralType GetObjectSpaceType(
	StructuralType edmSpaceType
)

Parameters

edmSpaceType
Type: System.Data.Entity.Core.Metadata.Edm.StructuralType

A StructuralType object that represents the EdmType .

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.StructuralType

A StructuralType object that represents the Object space type. If there is no matched type, this method returns null.