Files
server/src/Core/Repositories/IRepository.cs
2015-12-08 22:57:38 -05:00

15 lines
355 B
C#

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);
}
}