28 lines
740 B
C#
28 lines
740 B
C#
using IRaCIS.Core.Domain.Interfaces;
|
|
using IRaCIS.Core.Domain.Models;
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Repository
|
|
{
|
|
public class DicomInstanceRepository : BaseRepository<DicomInstance>, IDicomInstanceRepository
|
|
{
|
|
public DicomInstanceRepository(IRaCISDBContext db) : base(db)
|
|
{
|
|
|
|
}
|
|
//public new async Task AddOrUpdateAsync(DicomInstance t)
|
|
//{
|
|
// var exist = GetAll().AsNoTracking().FirstOrDefault(s => s.Id == t.Id);
|
|
// if (exist == null)
|
|
// {
|
|
|
|
// Add(t);
|
|
|
|
// }
|
|
// else
|
|
// {
|
|
// Update(exist);
|
|
// }
|
|
// await _dbContext.SaveChangesAsync();
|
|
//}
|
|
}
|
|
} |