MetadataWorkspace.TryGetEdmSpaceType Method

 

This method returns the Edm Space enumeration type mapped to the OSpace Type parameter.

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

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


MetadataWorkspace.TryGetEdmSpaceType Method (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 virtual bool TryGetEdmSpaceType(
	EnumType objectSpaceType,
	out EnumType edmSpaceType
)

Parameters

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

A EnumType object that represents the object space type.

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

When this method returns, contains a EnumType object that represents the EdmType . This parameter is passed uninitialized.

Return Value

Type: System.Boolean

true on success, false on failure.


MetadataWorkspace.TryGetEdmSpaceType Method (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 virtual bool TryGetEdmSpaceType(
	StructuralType objectSpaceType,
	out StructuralType edmSpaceType
)

Parameters

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

A StructuralType object that represents the object space type.

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

When this method returns, contains a StructuralType object that represents the EdmType . This parameter is passed uninitialized.

Return Value

Type: System.Boolean

true if there is a type that matches the search criteria; otherwise, false.