Files
server/src/Core/Repositories/IRepository.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
321 B
C#
Raw Normal View History

using Bit.Core.Entities;
2015-12-08 22:57:38 -05:00
2022-08-29 14:53:16 -04:00
namespace Bit.Core.Repositories;
public interface IRepository<T, TId> where TId : IEquatable<TId> where T : class, ITableObject<TId>
2015-12-08 22:57:38 -05:00
{
2022-08-29 14:53:16 -04:00
Task<T> GetByIdAsync(TId id);
Task<T> CreateAsync(T obj);
Task ReplaceAsync(T obj);
Task UpsertAsync(T obj);
Task DeleteAsync(T obj);
2015-12-08 22:57:38 -05:00
}