IMetadataCatalog.GetEntity Method

Gets the external content type with the given name and namespace.

Namespace:  Microsoft.BusinessData.MetadataModel
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Function GetEntity ( _
    namespace As String, _
    name As String _
) As IEntity
'Usage
Dim instance As IMetadataCatalog
Dim namespace As String
Dim name As String
Dim returnValue As IEntity

returnValue = instance.GetEntity(namespace, _
    name)
IEntity GetEntity(
    string namespace,
    string name
)

Parameters

  • namespace
    Type: System.String

    The namespace of the external content type. Namespaces are case sensitive.

  • name
    Type: System.String

    The given name of the external content type. Names are case sensitive.

Return Value

Type: Microsoft.BusinessData.MetadataModel.IEntity
The required external content type. External content type names are case sensitive.

Examples

Code Snippet: Get the DatabaseBackedMetadataCatalog on the Server

Code Snippet: Execute a Finder Method Instance of an External Content Type

Code Snippet: Execute the AssociationNavigator Method Instance of an External Content Type for an Association Without a Foreign Key

Code Snippet: Execute the Associator and Disassociator Method Instances of an External Content Type

Code Snippet: Execute the BulkAssociationNavigator Method Instance of an External Content Type

See Also

Reference

IMetadataCatalog Interface

IMetadataCatalog Members

Microsoft.BusinessData.MetadataModel Namespace