Verzeichnisse umgeräumt
This commit is contained in:
14
SewerStammGen.Shared/Contracts/IAuftraggeberDataService.cs
Normal file
14
SewerStammGen.Shared/Contracts/IAuftraggeberDataService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using SewerStammGen.Shared.Domain;
|
||||
using Shared.Contracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Contracts
|
||||
{
|
||||
public interface IAuftraggeberDataService : IDataService<Auftraggeber>
|
||||
{
|
||||
}
|
||||
}
|
||||
18
SewerStammGen.Shared/Contracts/IDataService.cs
Normal file
18
SewerStammGen.Shared/Contracts/IDataService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Contracts
|
||||
{
|
||||
public interface IDataService<T>: IDisposable
|
||||
{
|
||||
Task<IEnumerable<T>> GetAll();
|
||||
Task<T> Get(int id);
|
||||
Task<T> Create(T entity);
|
||||
Task<T> Update(T entity);
|
||||
Task<bool> Delete(int id);
|
||||
//T CreateNonAsync(T entity);
|
||||
}
|
||||
}
|
||||
13
SewerStammGen.Shared/Contracts/IExport.cs
Normal file
13
SewerStammGen.Shared/Contracts/IExport.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Contracts
|
||||
{
|
||||
internal interface IExport
|
||||
{
|
||||
bool Export();
|
||||
}
|
||||
}
|
||||
13
SewerStammGen.Shared/Contracts/IImport.cs
Normal file
13
SewerStammGen.Shared/Contracts/IImport.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Contracts
|
||||
{
|
||||
internal interface IImport
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
15
SewerStammGen.Shared/Contracts/IProjektDataService.cs
Normal file
15
SewerStammGen.Shared/Contracts/IProjektDataService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using SewerStammGen.Shared.Domain;
|
||||
using Shared.Contracts;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Contracts
|
||||
{
|
||||
public interface IProjektDataService : IDataService<Projekt>
|
||||
{
|
||||
}
|
||||
}
|
||||
17
SewerStammGen.Shared/Contracts/ISchachtDataService.cs
Normal file
17
SewerStammGen.Shared/Contracts/ISchachtDataService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using SewerStammGen.Shared.Domain;
|
||||
using Shared.Contracts;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Contracts
|
||||
{
|
||||
public interface ISchachtDataService : IDataService<Schacht>
|
||||
{
|
||||
Task<IEnumerable<Schacht>> GetAllByProjekt(int projektID);
|
||||
Task<IEnumerable<Schacht>> GetAllByProjekt(Projekt projekt);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user