2023-09-18 15:41:41 +03:30
|
|
|
|
using Brizco.Domain.Entities.User;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Brizco.Domain.Entities.Complex;
|
2023-09-15 12:37:02 +03:30
|
|
|
|
|
2023-09-18 09:45:02 +03:30
|
|
|
|
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
2023-12-12 14:54:19 +03:30
|
|
|
|
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
|
|
|
|
|
|
[AdaptTo("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
|
2023-09-18 09:45:02 +03:30
|
|
|
|
[GenerateMapper]
|
2023-09-18 15:41:41 +03:30
|
|
|
|
public partial class Complex : ApiEntity
|
2023-09-15 12:37:02 +03:30
|
|
|
|
{
|
2023-09-18 15:41:41 +03:30
|
|
|
|
public Complex()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Complex(string name , string address,string supportPhone)
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = name;
|
|
|
|
|
|
Address = address;
|
|
|
|
|
|
SupportPhone = supportPhone;
|
|
|
|
|
|
}
|
2023-09-18 09:45:02 +03:30
|
|
|
|
public string Name { get; internal set; } = string.Empty;
|
|
|
|
|
|
public string Address { get; internal set; } = string.Empty;
|
|
|
|
|
|
public string SupportPhone { get; internal set; } = string.Empty;
|
2023-09-18 15:41:41 +03:30
|
|
|
|
|
|
|
|
|
|
public List<ApplicationRole> Roles { get; set; } = new();
|
|
|
|
|
|
public List<Task.Task> Tasks { get; set; } = new();
|
|
|
|
|
|
public List<Shift.Shift> Shifts { get; set; } = new();
|
|
|
|
|
|
public List<ComplexUser> Users { get; set; } = new();
|
|
|
|
|
|
}
|
|
|
|
|
|
|