mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Added Bulk methods to IRepository
This commit is contained in:
@@ -32,12 +32,29 @@ namespace RuriLib.Interfaces
|
||||
/// <param name="entity">The entity that needs to be added</param>
|
||||
void Add(TEntity entity);
|
||||
|
||||
/// <summary>
|
||||
/// Adds multiple entities to the storage.
|
||||
/// </summary>
|
||||
/// <param name="entities">The entities that need to be added</param>
|
||||
void Add(IEnumerable<TEntity> entities);
|
||||
|
||||
/// <summary>
|
||||
/// Removes an entity from the storage.
|
||||
/// </summary>
|
||||
/// <param name="entity">The entity to remove</param>
|
||||
void Remove(TEntity entity);
|
||||
|
||||
/// <summary>
|
||||
/// Removes multiple entities from the storage.
|
||||
/// </summary>
|
||||
/// <param name="entities">The entities that need to be removed</param>
|
||||
void Remove(IEnumerable<TEntity> entities);
|
||||
|
||||
/// <summary>
|
||||
/// Clears the storage.
|
||||
/// </summary>
|
||||
void RemoveAll();
|
||||
|
||||
/// <summary>
|
||||
/// Updates an entity in the storage.
|
||||
/// </summary>
|
||||
@@ -45,8 +62,9 @@ namespace RuriLib.Interfaces
|
||||
void Update(TEntity entity);
|
||||
|
||||
/// <summary>
|
||||
/// Clears the storage.
|
||||
/// Updates multiple entities in the storage.
|
||||
/// </summary>
|
||||
void RemoveAll();
|
||||
/// <param name="entities">The entities that need to be updated</param>
|
||||
void Update(IEnumerable<TEntity> entities);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user