PIbd-22 Alkin_D.V. LabWork_1 #1

Closed
Darl1ngzxc wants to merge 9 commits from LabWork_1 into main
4 changed files with 57 additions and 0 deletions
Showing only changes of commit 89f7b54b59 - Show all commits

View 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 };
}
}

View File

@ -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,
}

View 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; }
}

View File

@ -8,4 +8,8 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<Folder Include="Entities\" />
</ItemGroup>
</Project>