Creates a new instance of the subclassable
class to be persisted in the specified object store. The presence of a
parameter on a
method indicates that the type of class being created is subclassable. The created object does not yet exist in an object store. To persist the created object to the object store, you must explicitly call the
method, or commit the object via a batch operation. Both approaches cause a round-trip to the server.
One form of this method takes object store and class ID arguments, and another form takes object store, class ID, and object ID (GUID) arguments. Specifying an ID for this instance is optional; if one is not specified, an ID for the new object is automatically generated.
The
parameter is the identifier for the type of class to be created. The identifier can be specified as the class name constant or the symbolic name for the class. It can also be
, in which case an object of the base class type is returned.
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
CreateInstance (IObjectStore, String) | Creates a new instance of the subclassable class to be persisted in the specified object store. The presence of a parameter on a method indicates that the type of class being created is subclassable. The created object does not yet exist in an object store. To persist the created object to the object store, you must explicitly call the method, or commit the object via a batch operation. Both approaches cause a round-trip to the server. One form of this method takes object store and class ID arguments, and another form takes object store, class ID, and object ID (GUID) arguments. Specifying an ID for this instance is optional; if one is not specified, an ID for the new object is automatically generated. The |
![]() ![]() |
CreateInstance (IObjectStore, String, Id) | Creates a new instance of the subclassable class to be persisted in the specified object store. The presence of a parameter on a method indicates that the type of class being created is subclassable. The created object does not yet exist in an object store. To persist the created object to the object store, you must explicitly call the method, or commit the object via a batch operation. Both approaches cause a round-trip to the server. One form of this method takes object store and class ID arguments, and another form takes object store, class ID, and object ID (GUID) arguments. Specifying an ID for this instance is optional; if one is not specified, an ID for the new object is automatically generated. The |
![]() ![]() |
CreateInstance (IObjectStore, String, Id, Id, ReservationType) | Creates a new instance of the subclassable class, to be persisted in the specified object store. Once you create an object, it does not yet exist in an object store. To persist the created object to the object store, you must explicitly call the method, or commit the object via a batch operation. Both approaches cause a round-trip to the server. The When this object is created, an associated The |