Api/Brizco.Domain/Entities/Routines/Routine.cs

29 lines
1.0 KiB
C#
Raw Permalink Normal View History

2024-08-11 19:20:09 +03:30
using Brizco.Domain.Entities.Tasks;
2024-07-06 21:20:10 +03:30
namespace Brizco.Domain.Entities.Routines;
2023-11-13 14:42:49 +03:30
[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]
public partial class Routine : ApiEntity
{
public Routine()
{
}
public Routine(string name,string description,Guid complexId)
{
Name = name;
Description = description;
ComplexId = complexId;
}
public string Name { get; internal set; } = string.Empty;
public string Description { get; internal set; } = string.Empty;
public Guid ComplexId { get; internal set; }
2024-07-06 21:20:10 +03:30
public Complex? Complex { get; internal set; }
2023-11-13 14:42:49 +03:30
public List<TaskRoutine> Tasks { get; internal set; } = new();
public List<ShiftRoutine> Shifts { get; internal set; } = new();
}