Adds the object to the data collection. Saving the object after adding to the collection will store the object data
with the configured repository.
The Save() method on the object is called after adding.
Namespace: KerbalDataAssembly: KerbalData (in KerbalData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- obj
- Type: T
object to add
- id (Optional)
- Type:
System String
(optional) id to use - if none is provided the object's Id property value will be used, if this property is null a random ID will be generated. If the ID matches that of an existing object the existing object data will be overwritten.
See Also