First commit
This commit is contained in:
8
DaSaSo.Domain/DaSaSo.Domain.csproj
Normal file
8
DaSaSo.Domain/DaSaSo.Domain.csproj
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
14
DaSaSo.Domain/Model/Client.cs
Normal file
14
DaSaSo.Domain/Model/Client.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Domain.Model
|
||||
{
|
||||
public class Client : DomainObject
|
||||
{
|
||||
public string Firstname { get; set; }
|
||||
public string LastName { get; set; }
|
||||
}
|
||||
}
|
||||
13
DaSaSo.Domain/Model/DomainObject.cs
Normal file
13
DaSaSo.Domain/Model/DomainObject.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Domain.Model
|
||||
{
|
||||
public class DomainObject
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
14
DaSaSo.Domain/Model/Project.cs
Normal file
14
DaSaSo.Domain/Model/Project.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Domain.Model
|
||||
{
|
||||
public class Project : DomainObject
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public Client Client { get; set; }
|
||||
}
|
||||
}
|
||||
17
DaSaSo.Domain/Services/IDataService.cs
Normal file
17
DaSaSo.Domain/Services/IDataService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Domain.Service
|
||||
{
|
||||
public interface IDataService<T>
|
||||
{
|
||||
Task<IEnumerable<T>> GetAll();
|
||||
Task<T> Get(int id);
|
||||
Task<T> Create(T entity);
|
||||
Task<T> Update(int id, T entity);
|
||||
Task<bool> Delete(int id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user