Exemplo n.º 1
0
 public void Add <TEntity>(params TEntity[] entities) where TEntity : class, IDatabaseObject
 {
     _querySource.AddRange(entities);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a list of entities to the repository without performing any additional persisting logic.
 /// For example, Ids will not be generated this way.
 /// </summary>
 /// <typeparam name="TEntity">Type of entities to be added.</typeparam>
 /// <param name="entities">List of entities to be added. Cannot be null.</param>
 public void Add <TEntity>(params TEntity[] entities)
 {
     querySource.AddRange(entities);
 }