Api/Brizco.Domain/Entities/Complex/PositionUser.cs

27 lines
839 B
C#
Raw Normal View History

2023-11-13 14:42:49 +03:30
using Brizco.Domain.Entities.User;
namespace Brizco.Domain.Entities.Complex;
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
2023-11-14 16:21:49 +03:30
public partial class PositionUser : ApiEntity
2023-11-13 14:42:49 +03:30
{
public PositionUser()
{
}
public PositionUser(Guid positionId,Guid applicationUserId ,Guid shiftPlanId)
2023-11-13 14:42:49 +03:30
{
ApplicationUserId = applicationUserId;
ShiftPlanId = shiftPlanId;
2023-11-13 14:42:49 +03:30
PositionId = positionId;
}
public Guid ApplicationUserId { get; set; }
public ApplicationUser? ApplicationUser { get; set; }
public Guid PositionId { get; set; }
public Position? Position { get; set; }
public Guid ShiftPlanId { get; set; }
public ShiftPlan? ShiftPlan { get; set; }
2023-11-13 14:42:49 +03:30
}