RawEntityDataTEntityCreateEntity Method |
Creates an entity with the data from a specified record in the data set.
Namespace:
AGI.Foundation.Tracking
Assembly:
AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic TEntity CreateEntity(
int recordIndex,
Transaction transaction
)
Public Function CreateEntity (
recordIndex As Integer,
transaction As Transaction
) As TEntity
public:
TEntity CreateEntity(
int recordIndex,
Transaction^ transaction
)
member CreateEntity :
recordIndex : int *
transaction : Transaction -> 'TEntity
Parameters
- recordIndex
- Type: SystemInt32
The index of the entity record from which to create the entity. - transaction
- Type: AGI.FoundationTransaction
The transaction to use to set properties of the entity.
Return Value
Type:
TEntityThe new entity created from the data record.
Exceptions| Exception | Condition |
|---|
| InvalidOperationException |
The data set does not contain the EntityIdentifier property,
which is required in order to create an entity.
|
| ArgumentNullException |
Thrown when transaction is .
|
See Also