IEntity.ExecuteScalar method

Executes a scalar MethodInstance object with the given name, filters values, and the given LobSystemInstance object, and returns the result.

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

Object ExecuteScalar(
	string methodInstanceName,
	IFilterCollection filterCollection,
	ILobSystemInstance lobSystemInstance
)

Parameters

methodInstanceName
Type: System.String

Name of the method instance.

filterCollection
Type: Microsoft.BusinessData.Runtime.IFilterCollection

The filters to apply.

lobSystemInstance
Type: Microsoft.BusinessData.MetadataModel.ILobSystemInstance

The given external system object.

Return value

Type: System.Object
The result object.

Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.

Show: