43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using MedicalDatabaseContracts;
|
|
using MedicalDatabaseContracts.Models;
|
|
using Npgsql;
|
|
|
|
namespace MedicalPostgresDatabase
|
|
{
|
|
public class DiagnosesStorage : IStorage<DiagnoseModel>
|
|
{
|
|
private MedicalDatabaseSingleton _database;
|
|
public DiagnosesStorage()
|
|
{
|
|
_database = MedicalDatabaseSingleton.GetInstance();
|
|
}
|
|
public DiagnoseModel Create(DiagnoseModel entity)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public DiagnoseModel Delete(long id)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public DiagnoseModel Get(long id)
|
|
{
|
|
using var cmd = new NpgsqlCommand();
|
|
cmd.Connection = dbconnection;
|
|
cmd.CommandText = "";
|
|
|
|
}
|
|
|
|
public List<DiagnoseModel> GetAll()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public DiagnoseModel Update(long id, DiagnoseModel entity)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|