MetadataWorkspace.TryGetType Method
Searches for a type metadata with the specified name and namespace name in the given space.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | TryGetType(String, String, Boolean, DataSpace, EdmType) | Returns an EdmType object by using the specified type name, namespace name, and data model. |
![]() | TryGetType(String, String, DataSpace, EdmType) | Returns an EdmType object by using the specified type name, namespace name, and data model. |
MetadataWorkspace.TryGetType Method (String, String, Boolean, DataSpace, EdmType)
Returns an EdmType object by using the specified type name, namespace name, and data model.
public virtual bool TryGetType( string name, string namespaceName, bool ignoreCase, DataSpace dataSpace, out EdmType type )
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.
- type
-
Type:
System.Data.Entity.Core.Metadata.Edm.EdmType
When this method returns, contains an EdmType object. This parameter is passed uninitialized.
Return Value
Type: System.Booleantrue if there is a type that matches the search criteria; otherwise, false.
MetadataWorkspace.TryGetType Method (String, String, DataSpace, EdmType)
Returns an EdmType object by using the specified type name, namespace name, and data model.
public virtual bool TryGetType( string name, string namespaceName, DataSpace dataSpace, out EdmType type )
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.
- type
-
Type:
System.Data.Entity.Core.Metadata.Edm.EdmType
When this method returns, contains an EdmType object. This parameter is passed uninitialized.
Return Value
Type: System.Booleantrue if there is a type that matches the search criteria; otherwise, false.