25 lines
667 B
C#
Raw Normal View History

2024-11-12 19:18:35 +03:00
using System.Runtime.CompilerServices;
namespace ProductionInCehOTP.Entities;
public class Worker
{
public int Id { get; private set; }
public string Name { get; private set; } = string.Empty;
2024-11-28 10:57:27 +03:00
public int Experience { get; private set; }
public int Class { get; private set; }
2024-11-12 19:18:35 +03:00
public int PlanWork { get; private set; }
2024-11-28 10:57:27 +03:00
public static Worker CreateWorker(int id, string name, int experience, int classOfWorker, int planWorkID)
2024-11-12 19:18:35 +03:00
{
return new Worker
{
Id = id,
Name = name,
2024-11-28 10:57:27 +03:00
Experience = experience,
Class = classOfWorker,
2024-11-12 19:18:35 +03:00
PlanWork = planWorkID
};
}
}