Adds a new entity to the store collection
Namespace: BrightstarDB.EntityFrameworkAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
| C# |
|---|
public void Add( T item ) |
| Visual Basic |
|---|
Public Sub Add ( item As T ) |
| Visual C++ |
|---|
public: virtual void Add( T item ) sealed |
| F# |
|---|
abstract Add : item : 'T -> unit override Add : item : 'T -> unit |
Parameters
- item
- Type: T
The new entity to be added
Implements
IEntitySet<(Of <(<'T>)>)>..::..Add(T)
Exceptions
| Exception | Condition |
|---|---|
| BrightstarDB.EntityFramework..::..EntityFrameworkException | Throw in item is attached to a context different to the one that this entity set is attached to |
| System..::..ArgumentException | Thrown if item is not an instance of a class derived from BrightstarEntityObject |
| System..::..ArgumentNullException | Thrown if item is NULL |