PIbd-22 Alkin_D.V. LabWork_1 #1
19
ProjectGasStation/ProjectGasStation/Entities/Employee.cs
Normal file
19
ProjectGasStation/ProjectGasStation/Entities/Employee.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectGasStation.Entities;
|
||||
|
||||
public class Employee
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
|
||||
public string Name { get; private set; } = string.Empty;
|
||||
|
||||
public static Employee CreateEntity(int id, string name)
|
||||
{
|
||||
return new Employee { Id = id, Name = name };
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectGasStation.Entities.Enums;
|
||||
[Flags]
|
||||
public enum ProductType
|
||||
{
|
||||
None = 0,
|
||||
|
||||
Fuel = 1,
|
||||
|
||||
|
||||
}
|
18
ProjectGasStation/ProjectGasStation/Entities/Shift.cs
Normal file
18
ProjectGasStation/ProjectGasStation/Entities/Shift.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectGasStation.Entities;
|
||||
|
||||
public class Shift
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
|
||||
public DateTime DateStart { get; private set; }
|
||||
|
||||
public DateTime DateFinish { get; private set; }
|
||||
|
||||
public int EmployeeID { get; private set; }
|
||||
}
|
@ -8,4 +8,8 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Entities\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Loading…
x
Reference in New Issue
Block a user