Schachtservice dummy files added
This commit is contained in:
53
SewerStammGen.DAL/Services/SchachtDataService.cs
Normal file
53
SewerStammGen.DAL/Services/SchachtDataService.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -26,6 +26,7 @@ namespace SewerStammGen.HostBuilders
|
|||||||
services.AddSingleton<ViewModelDelegateRenavigator<ProjektEditViewModel>>();
|
services.AddSingleton<ViewModelDelegateRenavigator<ProjektEditViewModel>>();
|
||||||
services.AddSingleton<IProjektDataService, ProjektDataService>();
|
services.AddSingleton<IProjektDataService, ProjektDataService>();
|
||||||
services.AddSingleton<IAuftraggeberDataService, AuftraggeberDataService>();
|
services.AddSingleton<IAuftraggeberDataService, AuftraggeberDataService>();
|
||||||
|
services.AddSingleton<ISchachtDataService, SchachtDataService>();
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ namespace SewerStammGen.Shared.Contracts
|
|||||||
{
|
{
|
||||||
public interface ISchachtDataService : IDataService<Schacht>
|
public interface ISchachtDataService : IDataService<Schacht>
|
||||||
{
|
{
|
||||||
|
Task<IEnumerable<Schacht>> GetAllByProjekt(int projektID);
|
||||||
|
Task<IEnumerable<Schacht>> GetAllByProjekt(Projekt projekt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user