Files
DMS/DMS.Infrastructure/Interfaces/IDeviceRepository.cs
2025-07-19 22:29:50 +08:00

19 lines
527 B
C#

using DMS.Core.Models;
using SqlSugar;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace DMS.Infrastructure.Interfaces
{
public interface IDeviceRepository
{
Task<DbDevice> AddAsync(DbDevice model);
Task<int> UpdateAsync(DbDevice model);
Task<int> DeleteAsync(DbDevice model);
Task<List<DbDevice>> GetAllAsync();
Task<DbDevice> GetByIdAsync(int id);
Task BeginTranAsync();
Task CommitTranAsync();
Task RollbackTranAsync();
}
}