GenericRepository(TEntity).AddIEnumerable Method

Template MVC

GenericRepositoryTEntityAddIEnumerable Method

Add a IEnumerable of new entities to the context, they will be added to the database on Save

Namespace:  Template.Repository.Core
Assembly:  Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual IEnumerable<TEntity> AddIEnumerable(
	IEnumerable<TEntity> entities
)

Parameters

entities
Type: System.Collections.GenericIEnumerableTEntity
The list of entities to insert

Return Value

Type: IEnumerableTEntity
The IEnumerable of entities after being added

Implements

IGenericRepositoryTEntityAddIEnumerable(IEnumerableTEntity)
See Also