Api/Brizco.Domain/Entities/Tasks/TaskShift.cs

22 lines
614 B
C#
Raw Normal View History

2024-07-06 21:20:10 +03:30
namespace Brizco.Domain.Entities.Tasks;
2023-09-15 12:37:02 +03:30
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
2023-09-15 12:37:02 +03:30
public class TaskShift : ApiEntity
{
public TaskShift()
{
}
2023-09-15 12:37:02 +03:30
internal TaskShift(Guid taskId, Guid shiftId)
{
TaskId = taskId;
ShiftId = shiftId;
}
public Guid TaskId { get; internal set; }
public virtual Task? Task { get; internal set; }
public Guid ShiftId { get; internal set; }
2024-07-06 21:20:10 +03:30
public virtual Shift? Shift { get; internal set; }
2023-09-15 12:37:02 +03:30
}