переделала интерфейсы под классы-модели, запихнула в папку и пока только создала абстрактный класс для работы с хранилищем (с бд)
This commit is contained in:
parent
b681091801
commit
f24716aee0
@ -6,9 +6,8 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace BeautySalonDBModels
|
namespace BeautySalonDBModels
|
||||||
{
|
{
|
||||||
public interface ISpecialisation
|
public abstract class AbstractWorkWithStorage
|
||||||
{
|
{
|
||||||
int SpecialisationId { get; }
|
public abstract void AddClient(Clien);
|
||||||
string Name { get; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
|
||||||
|
<PackageReference Include="Npgsql" Version="8.0.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BeautySalonDBModels
|
|
||||||
{
|
|
||||||
public interface ICheque
|
|
||||||
{
|
|
||||||
int ChequeId { get; }
|
|
||||||
int ClientId { get; }
|
|
||||||
string ReceptionId { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BeautySalonDBModels
|
|
||||||
{
|
|
||||||
public interface IClient
|
|
||||||
{
|
|
||||||
int ClientId { get; }
|
|
||||||
string FIO { get; }
|
|
||||||
int Age { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BeautySalonDBModels
|
|
||||||
{
|
|
||||||
public interface IMaster
|
|
||||||
{
|
|
||||||
int MasterId { get; }
|
|
||||||
int SpecialisationId { get; }
|
|
||||||
string FIO { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BeautySalonDBModels
|
|
||||||
{
|
|
||||||
public interface IReception
|
|
||||||
{
|
|
||||||
int ReceptionId { get; }
|
|
||||||
int MasterId { get; }
|
|
||||||
int ServiceId { get; }
|
|
||||||
DateTime DateReception { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BeautySalonDBModels
|
|
||||||
{
|
|
||||||
public interface IService
|
|
||||||
{
|
|
||||||
int ServiceId { get; }
|
|
||||||
string ServiceName { get; }
|
|
||||||
double Price { get; }
|
|
||||||
int SpecialisationId { get; }
|
|
||||||
}
|
|
||||||
}
|
|
9
BeautySalon/BeautySalonDBModels/Models/Cheque.cs
Normal file
9
BeautySalon/BeautySalonDBModels/Models/Cheque.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace BeautySalonDBModels.Models
|
||||||
|
{
|
||||||
|
public class Cheque
|
||||||
|
{
|
||||||
|
public int ChequeId { get; }
|
||||||
|
public int ClientId { get; }
|
||||||
|
public int ReceptionId { get; }
|
||||||
|
}
|
||||||
|
}
|
9
BeautySalon/BeautySalonDBModels/Models/Client.cs
Normal file
9
BeautySalon/BeautySalonDBModels/Models/Client.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace BeautySalonDBModels.Models
|
||||||
|
{
|
||||||
|
public class Client
|
||||||
|
{
|
||||||
|
public int ClientId { get; }
|
||||||
|
public string FIO { get; } = string.Empty;
|
||||||
|
public int Age { get; }
|
||||||
|
}
|
||||||
|
}
|
9
BeautySalon/BeautySalonDBModels/Models/Master.cs
Normal file
9
BeautySalon/BeautySalonDBModels/Models/Master.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace BeautySalonDBModels.Models
|
||||||
|
{
|
||||||
|
public class Master
|
||||||
|
{
|
||||||
|
public int MasterId { get; }
|
||||||
|
public int SpecialisationId { get; }
|
||||||
|
public string FIO { get; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
10
BeautySalon/BeautySalonDBModels/Models/Reception.cs
Normal file
10
BeautySalon/BeautySalonDBModels/Models/Reception.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace BeautySalonDBModels.Models
|
||||||
|
{
|
||||||
|
public class Reception
|
||||||
|
{
|
||||||
|
public int ReceptionId { get; }
|
||||||
|
public int MasterId { get; }
|
||||||
|
public int ServiceId { get; }
|
||||||
|
public DateTime DateReception { get; }
|
||||||
|
}
|
||||||
|
}
|
10
BeautySalon/BeautySalonDBModels/Models/Service.cs
Normal file
10
BeautySalon/BeautySalonDBModels/Models/Service.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace BeautySalonDBModels.Models
|
||||||
|
{
|
||||||
|
public class Service
|
||||||
|
{
|
||||||
|
public int ServiceId { get; }
|
||||||
|
public string ServiceName { get; } = string.Empty;
|
||||||
|
public double Price { get; }
|
||||||
|
public int SpecialisationId { get; }
|
||||||
|
}
|
||||||
|
}
|
8
BeautySalon/BeautySalonDBModels/Models/Specialisation.cs
Normal file
8
BeautySalon/BeautySalonDBModels/Models/Specialisation.cs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
namespace BeautySalonDBModels.Models
|
||||||
|
{
|
||||||
|
public class Specialisation
|
||||||
|
{
|
||||||
|
public int SpecialisationId { get; }
|
||||||
|
public string Name { get; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user