Adds a collection of entities 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 AddRange(
	IEnumerable<T> items
)
Visual Basic
Public Sub AddRange ( 
	items As IEnumerable(Of T)
)
Visual C++
public:
void AddRange(
	IEnumerable<T>^ items
)
F#
member AddRange : 
        items : IEnumerable<'T> -> unit 

Parameters

items
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
The entities to be added

Exceptions

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

See Also