|
|
@ -2,53 +2,51 @@ |
|
|
|
using System.Diagnostics.CodeAnalysis; |
|
|
|
using System.Diagnostics.CodeAnalysis; |
|
|
|
using espacecollab.backend.infrastructure.sql.dtos.Interfaces; |
|
|
|
using espacecollab.backend.infrastructure.sql.dtos.Interfaces; |
|
|
|
|
|
|
|
|
|
|
|
namespace espacecollab.backend.infrastructure.sql.dtos |
|
|
|
namespace espacecollab.backend.infrastructure.sql.dtos; |
|
|
|
{ |
|
|
|
|
|
|
|
public class CollaborateurSqlDto : IGenericIdSqlDto |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public int Id { get; set; } |
|
|
|
|
|
|
|
public string Name { get; set; } |
|
|
|
|
|
|
|
public string FirstName { get; set; } |
|
|
|
|
|
|
|
public DateTime BirthDate { get; set; } |
|
|
|
|
|
|
|
public EnumGenreSql Gender { get; set; } |
|
|
|
|
|
|
|
public EnumStatutSql Status { get; set; } |
|
|
|
|
|
|
|
public int ChildrenNumber { get; set; } |
|
|
|
|
|
|
|
public string Address { get; set; } |
|
|
|
|
|
|
|
public string Telephone { get; set; } |
|
|
|
|
|
|
|
public string PersonalMail { get; set; } |
|
|
|
|
|
|
|
public string ApsideMail { get; set; } |
|
|
|
|
|
|
|
public DateTime ResignationDate { get; set; } |
|
|
|
|
|
|
|
public int ReferrerId { get; set; } |
|
|
|
|
|
|
|
public int BusinessUnitId { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ExcludeFromCodeCoverage] |
|
|
|
public class CollaborateurSqlDto : IGenericIdSqlDto |
|
|
|
private CollaborateurSqlDto() |
|
|
|
{ |
|
|
|
{ |
|
|
|
public int Id { get; set; } |
|
|
|
Name = string.Empty; |
|
|
|
public string Name { get; set; } |
|
|
|
FirstName = string.Empty; |
|
|
|
public string FirstName { get; set; } |
|
|
|
Address = string.Empty; |
|
|
|
public DateTime BirthDate { get; set; } |
|
|
|
Telephone = string.Empty; |
|
|
|
public EnumGenreSql Gender { get; set; } |
|
|
|
PersonalMail = string.Empty; |
|
|
|
public EnumStatutSql Status { get; set; } |
|
|
|
ApsideMail = string.Empty; |
|
|
|
public int ChildrenNumber { get; set; } |
|
|
|
} |
|
|
|
public string Address { get; set; } |
|
|
|
|
|
|
|
public string Telephone { get; set; } |
|
|
|
|
|
|
|
public string PersonalMail { get; set; } |
|
|
|
|
|
|
|
public string ApsideMail { get; set; } |
|
|
|
|
|
|
|
public DateTime ResignationDate { get; set; } |
|
|
|
|
|
|
|
public int ReferrerId { get; set; } |
|
|
|
|
|
|
|
public int BusinessUnitId { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public CollaborateurSqlDto(int id, string name, string firstName, DateTime birthDate, EnumGenreSql gender, EnumStatutSql status, int childrenNumber, string address, string telephone, string personalMail, string apsideMail, DateTime resignationDate, int referrerId, int businessUnitId) |
|
|
|
[ExcludeFromCodeCoverage] |
|
|
|
{ |
|
|
|
private CollaborateurSqlDto() |
|
|
|
Id = id; |
|
|
|
{ |
|
|
|
Name = name; |
|
|
|
Name = string.Empty; |
|
|
|
FirstName = firstName; |
|
|
|
FirstName = string.Empty; |
|
|
|
BirthDate = birthDate; |
|
|
|
Address = string.Empty; |
|
|
|
Gender = gender; |
|
|
|
Telephone = string.Empty; |
|
|
|
Status = status; |
|
|
|
PersonalMail = string.Empty; |
|
|
|
ChildrenNumber = childrenNumber; |
|
|
|
ApsideMail = string.Empty; |
|
|
|
Address = address; |
|
|
|
} |
|
|
|
Telephone = telephone; |
|
|
|
|
|
|
|
PersonalMail = personalMail; |
|
|
|
|
|
|
|
ApsideMail = apsideMail; |
|
|
|
|
|
|
|
ResignationDate = resignationDate; |
|
|
|
|
|
|
|
ReferrerId = referrerId; |
|
|
|
|
|
|
|
BusinessUnitId = businessUnitId; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public CollaborateurSqlDto(int id, string name, string firstName, DateTime birthDate, EnumGenreSql gender, EnumStatutSql status, int childrenNumber, string address, string telephone, string personalMail, string apsideMail, DateTime resignationDate, int referrerId, int businessUnitId) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Id = id; |
|
|
|
|
|
|
|
Name = name; |
|
|
|
|
|
|
|
FirstName = firstName; |
|
|
|
|
|
|
|
BirthDate = birthDate; |
|
|
|
|
|
|
|
Gender = gender; |
|
|
|
|
|
|
|
Status = status; |
|
|
|
|
|
|
|
ChildrenNumber = childrenNumber; |
|
|
|
|
|
|
|
Address = address; |
|
|
|
|
|
|
|
Telephone = telephone; |
|
|
|
|
|
|
|
PersonalMail = personalMail; |
|
|
|
|
|
|
|
ApsideMail = apsideMail; |
|
|
|
|
|
|
|
ResignationDate = resignationDate; |
|
|
|
|
|
|
|
ReferrerId = referrerId; |
|
|
|
|
|
|
|
BusinessUnitId = businessUnitId; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |