MetadataWorkspace.TryGetObjectSpaceType Method
This method returns the OSpace enumeration type mapped to the specified Edm Space Type.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | TryGetObjectSpaceType(EnumType, EnumType) | |
![]() | TryGetObjectSpaceType(StructuralType, StructuralType) | Returns a StructuralType object via the out parameter objectSpaceType that represents the type that matches the EdmType supplied by the parameter edmSpaceType . |
MetadataWorkspace.TryGetObjectSpaceType Method (EnumType, EnumType)
Returns a EnumType object via the out parameter objectSpaceType that represents the type that matches the EdmType supplied by the parameter edmSpaceType .
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")] public virtual bool TryGetObjectSpaceType( EnumType edmSpaceType, out EnumType objectSpaceType )
Parameters
- edmSpaceType
- Type: System.Data.Entity.Core.Metadata.Edm.EnumType
- objectSpaceType
-
Type:
System.Data.Entity.Core.Metadata.Edm.EnumType
When this method returns, contains a EnumType object that represents the Object space type. This parameter is passed uninitialized.
Return Value
Type: System.Booleantrue if there is a type that matches the search criteria; otherwise, false.
MetadataWorkspace.TryGetObjectSpaceType Method (StructuralType, StructuralType)
Returns a StructuralType object via the out parameter objectSpaceType that represents the type that matches the EdmType supplied by the parameter edmSpaceType .
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")] public virtual bool TryGetObjectSpaceType( StructuralType edmSpaceType, out StructuralType objectSpaceType )
Parameters
- edmSpaceType
-
Type:
System.Data.Entity.Core.Metadata.Edm.StructuralType
A StructuralType object that represents the EdmType .
- objectSpaceType
-
Type:
System.Data.Entity.Core.Metadata.Edm.StructuralType
When this method returns, contains a StructuralType object that represents the Object space type. This parameter is passed uninitialized.
Return Value
Type: System.Booleantrue if there is a type that matches the search criteria; otherwise, false.