Files
2026-06-09 22:27:38 +02:00

15 lines
574 B
C#

using EonaCat.gRPC.Core.Entities;
using EonaCat.Repositories;
namespace EonaCat.gRPC.Core.Interfaces.Repositories;
public interface IBaseRepository<T> : IRepository<T> where T : BaseEntity
{
/// <param name="acceptAllChangesOnSuccess">
/// Indicates whether <see cref="Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTracker.AcceptAllChanges" /> is called after
/// the changes have been sent successfully to the database.
/// </param>
Task SaveChangesAsync(bool acceptAllChangesOnSuccess);
Task SaveChangesAsync();
void Save();
}