Api/Brizco.Domain/Entities/Shift/ShiftPlan.cs

24 lines
808 B
C#
Raw Normal View History

2023-09-15 12:37:02 +03:30
namespace Brizco.Domain.Entities.Shift;
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
2023-09-15 12:37:02 +03:30
public partial class ShiftPlan : ApiEntity
{
public ShiftPlan()
{
}
internal ShiftPlan(DateTime planDate,Guid shiftId)
2023-09-15 12:37:02 +03:30
{
PlanDate = planDate;
ShiftId = shiftId;
2023-09-15 12:37:02 +03:30
}
public DateTime PlanDate { get; internal set; }
2023-09-15 12:37:02 +03:30
public Guid ShiftId { get; internal set; }
public virtual Shift? Shift { get; internal set; }
2023-09-15 12:37:02 +03:30
public List<ShiftPlanUser> Users { get; internal set; } = new();
2023-09-15 12:37:02 +03:30
}