mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
initial commit of source
This commit is contained in:
14
src/Core/Repositories/IRepository.cs
Normal file
14
src/Core/Repositories/IRepository.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bit.Core.Repositories
|
||||
{
|
||||
public interface IRepository<T> where T : IDataObject
|
||||
{
|
||||
Task<T> GetByIdAsync(string id);
|
||||
Task CreateAsync(T obj);
|
||||
Task ReplaceAsync(T obj);
|
||||
Task UpsertAsync(T obj);
|
||||
Task DeleteByIdAsync(string id);
|
||||
Task DeleteAsync(T obj);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user