IEntity.Create Method (IFieldValueDictionary, ILobSystemInstance)
Creates an external item.
Namespace: Microsoft.BusinessData.MetadataModel
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function Create ( _
fieldValues As IFieldValueDictionary, _
lsi As ILobSystemInstance _
) As Identity
'Usage
Dim instance As IEntity
Dim fieldValues As IFieldValueDictionary
Dim lsi As ILobSystemInstance
Dim returnValue As Identity
returnValue = instance.Create(fieldValues, _
lsi)
Identity Create(
IFieldValueDictionary fieldValues,
ILobSystemInstance lsi
)
Parameters
fieldValues
Type: Microsoft.BusinessData.Runtime.IFieldValueDictionaryThe parameters of the Create method.
lsi
Type: Microsoft.BusinessData.MetadataModel.ILobSystemInstanceAn LobSystem instance.
Return Value
Type: Microsoft.BusinessData.Runtime.Identity
The identity of the created external item.
Remarks
You can use this method to create external items on the external system by specifying the values required for creation. The values do not necessarily correspond to fields of an external item. The method returns the Identity corresponding to the external item that was created. The IFieldValueDictionary instance provided as an input to this method should be created from a View that corresponds to a MethodInstance of type Creator.
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.