Agregar archivos de proyecto.
This commit is contained in:
11
MieSystem/Data/Interfaces/IDatabaseConnectionFactory.cs
Normal file
11
MieSystem/Data/Interfaces/IDatabaseConnectionFactory.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Data;
|
||||
using Npgsql;
|
||||
|
||||
namespace MieSystem.Data.Interfaces
|
||||
{
|
||||
public interface IDatabaseConnectionFactory
|
||||
{
|
||||
Task<IDbConnection> CreateConnectionAsync();
|
||||
IDbConnection CreateConnection();
|
||||
}
|
||||
}
|
||||
13
MieSystem/Data/Interfaces/IExpedienteRepository.cs
Normal file
13
MieSystem/Data/Interfaces/IExpedienteRepository.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using MieSystem.Models;
|
||||
|
||||
namespace MieSystem.Data.Interfaces
|
||||
{
|
||||
public interface IExpedienteRepository
|
||||
{
|
||||
Task<Expediente?> GetByIdAsync(int id);
|
||||
Task<IEnumerable<Expediente?>> GetAllAsync();
|
||||
Task<int> CreateAsync(Expediente expediente);
|
||||
Task<bool> UpdateAsync(Expediente expediente);
|
||||
Task<bool> DeleteAsync(int id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user