Creates a new instance of a specified entity type.
Parameters
Parameters
Description
entityDef
[in] A raw pointer to the entity definition that contains the type name of the new entity to be created.
Returns
A smart pointer to the created entity instance.
Remarks
If the current schema does not support the specified type, the method returns a NULL smart pointer. In this case, the isNull() method of the smart pointer object returns true. The created entity is not attached to the model and doesn't have object identifier.