Schachtservice dummy files added

This commit is contained in:
2023-04-12 22:40:40 +02:00
parent 7a036b3404
commit 6878284b61
3 changed files with 56 additions and 1 deletions

View File

@@ -0,0 +1,53 @@
using Npgsql;
using SewerStammGen.Shared.Contracts;
using SewerStammGen.Shared.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SewerStammGen.DAL.Services
{
public class SchachtDataService : PostgresqlDataService, ISchachtDataService
{
public SchachtDataService() : base("public.\"Schaechte\"")
{
}
public Task<Schacht> Create(Schacht entity)
{
throw new NotImplementedException();
}
public Task<Schacht> Get(int id)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Schacht>> GetAll()
{
throw new NotImplementedException();
}
private Schacht parseSchacht(NpgsqlDataReader? reader)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Schacht>> GetAllByProjekt(int projektID)
{
throw new NotImplementedException();
}
public async Task<IEnumerable<Schacht>> GetAllByProjekt(Projekt projekt)
{
return await GetAllByProjekt(projekt.Id);
}
public Task<Schacht> Update(Schacht entity)
{
throw new NotImplementedException();
}
}
}

View File

@@ -26,6 +26,7 @@ namespace SewerStammGen.HostBuilders
services.AddSingleton<ViewModelDelegateRenavigator<ProjektEditViewModel>>();
services.AddSingleton<IProjektDataService, ProjektDataService>();
services.AddSingleton<IAuftraggeberDataService, AuftraggeberDataService>();
services.AddSingleton<ISchachtDataService, SchachtDataService>();
});

View File

@@ -11,6 +11,7 @@ namespace SewerStammGen.Shared.Contracts
{
public interface ISchachtDataService : IDataService<Schacht>
{
Task<IEnumerable<Schacht>> GetAllByProjekt(int projektID);
Task<IEnumerable<Schacht>> GetAllByProjekt(Projekt projekt);
}
}