|
|
|
@ -2,53 +2,51 @@ |
|
|
|
|
using System.Diagnostics.CodeAnalysis; |
|
|
|
|
using espacecollab.backend.infrastructure.sql.dtos.Interfaces; |
|
|
|
|
|
|
|
|
|
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; } |
|
|
|
|
namespace espacecollab.backend.infrastructure.sql.dtos; |
|
|
|
|
|
|
|
|
|
[ExcludeFromCodeCoverage] |
|
|
|
|
private CollaborateurSqlDto() |
|
|
|
|
{ |
|
|
|
|
Name = string.Empty; |
|
|
|
|
FirstName = string.Empty; |
|
|
|
|
Address = string.Empty; |
|
|
|
|
Telephone = string.Empty; |
|
|
|
|
PersonalMail = string.Empty; |
|
|
|
|
ApsideMail = string.Empty; |
|
|
|
|
} |
|
|
|
|
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; } |
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
[ExcludeFromCodeCoverage] |
|
|
|
|
private CollaborateurSqlDto() |
|
|
|
|
{ |
|
|
|
|
Name = string.Empty; |
|
|
|
|
FirstName = string.Empty; |
|
|
|
|
Address = string.Empty; |
|
|
|
|
Telephone = string.Empty; |
|
|
|
|
PersonalMail = string.Empty; |
|
|
|
|
ApsideMail = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |