DbContext.AddRange DbContext.AddRange DbContext.AddRange Method

Definition

Overloads

AddRange(IEnumerable<Object>) AddRange(IEnumerable<Object>) AddRange(IEnumerable<Object>)

Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

AddRange(Object[]) AddRange(Object[]) AddRange(Object[])

Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

AddRange(IEnumerable<Object>) AddRange(IEnumerable<Object>) AddRange(IEnumerable<Object>)

Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

public virtual void AddRange (System.Collections.Generic.IEnumerable<object> entities);
abstract member AddRange : seq<obj> -> unit
override this.AddRange : seq<obj> -> unit
Public Overridable Sub AddRange (entities As IEnumerable(Of Object))

Parameters

entities
IEnumerable<Object>

The entities to add.

AddRange(Object[]) AddRange(Object[]) AddRange(Object[])

Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

public virtual void AddRange (params object[] entities);
abstract member AddRange : obj[] -> unit
override this.AddRange : obj[] -> unit
Public Overridable Sub AddRange (ParamArray entities As Object())

Parameters

entities
Object[]

The entities to add.

Applies to