mirror of
https://github.com/bitwarden/server.git
synced 2026-02-03 07:33:11 +08:00
* Enable Nullable In Unowned Repos * Update More Tests * Move to One If * Fix Collections * Format * Add Migrations * Move Pragma Annotation * Add Better Assert Message
15 lines
340 B
C#
15 lines
340 B
C#
using Bit.Core.Entities;
|
|
|
|
#nullable enable
|
|
|
|
namespace Bit.Core.Repositories;
|
|
|
|
public interface IRepository<T, TId> where TId : IEquatable<TId> where T : class, ITableObject<TId>
|
|
{
|
|
Task<T?> GetByIdAsync(TId id);
|
|
Task<T> CreateAsync(T obj);
|
|
Task ReplaceAsync(T obj);
|
|
Task UpsertAsync(T obj);
|
|
Task DeleteAsync(T obj);
|
|
}
|