MetadataWorkspace.GetType Method
Searches for a type metadata with the specified name and namespace name in the given space.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GetType() | (Inherited from Object.) |
![]() | GetType(String, String, Boolean, DataSpace) | Returns an EdmType object by using the specified type name, namespace name, and data model. |
![]() | GetType(String, String, DataSpace) | Returns an EdmType object by using the specified type name, namespace name, and data model. |
MetadataWorkspace.GetType Method (String, String, Boolean, DataSpace)
Returns an EdmType object by using the specified type name, namespace name, and data model.
[SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "GetType")] public virtual EdmType GetType( string name, string namespaceName, bool ignoreCase, DataSpace dataSpace )
Parameters
- name
-
Type:
System.String
The name of the type.
- namespaceName
-
Type:
System.String
The namespace of the type.
- ignoreCase
-
Type:
System.Boolean
true to perform the case-insensitive search; otherwise, false.
- dataSpace
-
Type:
System.Data.Entity.Core.Metadata.Edm.DataSpace
The conceptual model on which the type is searched.
Exception | Condition |
---|---|
ArgumentException | Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace |
MetadataWorkspace.GetType Method (String, String, DataSpace)
Returns an EdmType object by using the specified type name, namespace name, and data model.
[SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "GetType")] public virtual EdmType GetType( string name, string namespaceName, DataSpace dataSpace )
Parameters
- name
-
Type:
System.String
The name of the type.
- namespaceName
-
Type:
System.String
The namespace of the type.
- dataSpace
-
Type:
System.Data.Entity.Core.Metadata.Edm.DataSpace
The conceptual model on which the type is searched.
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.EdmTypeAn EdmType object that represents the type that matches the given type name and the namespace name in the specified data model. If there is no matched type, this method returns null.
Exception | Condition |
---|---|
ArgumentException | Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace |