Adds a new entity to the store collection

Namespace: BrightstarDB.EntityFramework
Assembly: 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

ExceptionCondition
BrightstarDB.EntityFramework..::..EntityFrameworkExceptionThrow in item is attached to a context different to the one that this entity set is attached to
System..::..ArgumentExceptionThrown if item is not an instance of a class derived from BrightstarEntityObject
System..::..ArgumentNullExceptionThrown if item is NULL

See Also