From be92114591ec8a0aff02090db50b61d2127649a5 Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Thu, 18 Nov 2021 14:35:04 +0100 Subject: [PATCH 1/7] =?UTF-8?q?Cr=C3=A9ation=20des=20projets=20et=20des=20?= =?UTF-8?q?DTOs=20SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Collaborateur_Epa_Back.sln | 25 --- Collaborateur_Epa_Back/Model/Class1.cs | 8 - Collaborateur_Epa_Back/Model/Model.csproj | 7 - Collaborateur_Epa_Back/db/db_1_0_0.sql | 161 ------------------ .../espacecollab.backend.api/Program.cs | 25 +++ .../Properties/launchSettings.json | 31 ++++ .../appsettings.Development.json | 8 + .../espacecollab.backend.api/appsettings.json | 9 + .../espacecollab.backend.api.csproj | 17 ++ ...pacecollab.backend.appservices.dtos.csproj | 9 + .../espacecollab.backend.appservices.csproj | 9 + .../AgenceDto.cs | 15 ++ .../BusinessUnitDto.cs | 17 ++ .../CollaborateurAppartientBusinessUnitDto.cs | 20 +++ .../CollaborateurCollaboreProjetDto.cs | 21 +++ .../CollaborateurDto.cs | 31 ++++ .../CollaborateurEffectuePeriodeEssaiDto.cs | 20 +++ .../CollaborateurEstFonctionDto.cs | 20 +++ .../EnumGenre.cs | 9 + .../EnumIssue.cs | 11 ++ .../EnumStatut.cs | 10 ++ .../FonctionDto.cs | 15 ++ .../PeriodeEssaiDto.cs | 19 +++ .../ProjetDto.cs | 19 +++ .../ProjetUtiliseTechnologieDto.cs | 20 +++ .../ReferencementDto.cs | 23 +++ .../SiteDeveloppeProjetDto.cs | 20 +++ .../SiteDto.cs | 17 ++ .../TechnologieDto.cs | 15 ++ ...lab.backend.infrastructure.sql.dtos.csproj | 9 + .../db/db_1_0_0.sql | 152 +++++++++++++++++ ...cecollab.backend.infrastructure.sql.csproj | 9 + .../espacecollab.backend.sln | 49 ++++++ 33 files changed, 649 insertions(+), 201 deletions(-) delete mode 100644 Collaborateur_Epa_Back/Collaborateur_Epa_Back.sln delete mode 100644 Collaborateur_Epa_Back/Model/Class1.cs delete mode 100644 Collaborateur_Epa_Back/Model/Model.csproj delete mode 100644 Collaborateur_Epa_Back/db/db_1_0_0.sql create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.api/Program.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.api/Properties/launchSettings.json create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.Development.json create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.json create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.api/espacecollab.backend.api.csproj create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.appservices.dtos/espacecollab.backend.appservices.dtos.csproj create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.appservices/espacecollab.backend.appservices.csproj create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/espacecollab.backend.infrastructure.sql.dtos.csproj create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/espacecollab.backend.infrastructure.sql.csproj create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.sln diff --git a/Collaborateur_Epa_Back/Collaborateur_Epa_Back.sln b/Collaborateur_Epa_Back/Collaborateur_Epa_Back.sln deleted file mode 100644 index 8e4b3ef..0000000 --- a/Collaborateur_Epa_Back/Collaborateur_Epa_Back.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31729.503 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{41657DCB-D497-4D12-BE12-E9F1CB0731D5}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {41657DCB-D497-4D12-BE12-E9F1CB0731D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {41657DCB-D497-4D12-BE12-E9F1CB0731D5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {41657DCB-D497-4D12-BE12-E9F1CB0731D5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {41657DCB-D497-4D12-BE12-E9F1CB0731D5}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {0A56A44C-135E-4CE4-834B-8DFDF69DC415} - EndGlobalSection -EndGlobal diff --git a/Collaborateur_Epa_Back/Model/Class1.cs b/Collaborateur_Epa_Back/Model/Class1.cs deleted file mode 100644 index 2d7df97..0000000 --- a/Collaborateur_Epa_Back/Model/Class1.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace Model -{ - public class Class1 - { - } -} diff --git a/Collaborateur_Epa_Back/Model/Model.csproj b/Collaborateur_Epa_Back/Model/Model.csproj deleted file mode 100644 index f208d30..0000000 --- a/Collaborateur_Epa_Back/Model/Model.csproj +++ /dev/null @@ -1,7 +0,0 @@ - - - - net5.0 - - - diff --git a/Collaborateur_Epa_Back/db/db_1_0_0.sql b/Collaborateur_Epa_Back/db/db_1_0_0.sql deleted file mode 100644 index 2d8cb65..0000000 --- a/Collaborateur_Epa_Back/db/db_1_0_0.sql +++ /dev/null @@ -1,161 +0,0 @@ -DROP DATABASE IF EXISTS collaborateur_epa; -CREATE DATABASE IF NOT EXISTS collaborateur_epa /*!40100 DEFAULT CHARACTER SET latin1 */; -USE collaborateur_epa; - -DROP TABLE IF EXISTS agence; -CREATE TABLE IF NOT EXISTS agence( - id int NOT NULL AUTO_INCREMENT, - nom varchar(100) NOT NULL UNIQUE, - adresse_id int NOT NULL, - PRIMARY KEY (id) -); - -DROP TABLE IF EXISTS business_unit; -CREATE TABLE IF NOT EXISTS business_unit( - id int NOT NULL AUTO_INCREMENT, - nom varchar(100) NOT NULL UNIQUE, - agence_id int NOT NULL, - CONSTRAINT FK_BUSINESS_UNIT_AGENCE FOREIGN KEY (agence_id) references agence(id), - PRIMARY KEY (id) -); - -DROP TABLE IF EXISTS site; -CREATE TABLE IF NOT EXISTS site( - id int NOT NULL AUTO_INCREMENT, - nom varchar(100) NOT NULL UNIQUE, - adresse varchar(200) NOT NULL, - business_unit_id int NOT NULL, - CONSTRAINT FK_SITE_BUSINESS_UNIT FOREIGN KEY (business_unit_id) references business_unit(id), - PRIMARY KEY (id) -); - -DROP TABLE IF EXISTS projet; -CREATE TABLE IF NOT EXISTS projet( - id int NOT NULL AUTO_INCREMENT, - nom varchar(100) NOT NULL UNIQUE, - client varchar(100) NOT NULL, - description varchar(100) NOT NULL, - date_debut date NOT NULL, - dateFin date NOT NULL, - PRIMARY KEY (id) -); - -DROP TABLE IF EXISTS technologie; -CREATE TABLE IF NOT EXISTS technologie( - id int NOT NULL UNIQUE, - intitule varchar(100) NOT NULL UNIQUE, - PRIMARY KEY (id) -); - - - -DROP TABLE IF EXISTS periode_essai; -CREATE TABLE IF NOT EXISTS periode_essai( - id int NOT NULL AUTO_INCREMENT, - date_debut date NOT NULL, - date_fin_prevue date NOT NULL, - date_fin_effective date NOT NULL, - commentaire varchar(100), - issue ENUM('VALIDEE','PROLONGEE_COLLAB','PROLONGEE_APSIDE','ARRETEE_COLLAB','ARRETEE_APSIDE'), - PRIMARY KEY (id) -); - -DROP TABLE IF EXISTS fonction; -CREATE TABLE IF NOT EXISTS fonction( - id int NOT NULL UNIQUE, - intitule varchar(100) NOT NULL UNIQUE, - PRIMARY KEY (id) -); - -DROP TABLE IF EXISTS collaborateur; -CREATE TABLE IF NOT EXISTS collaborateur( - id int NOT NULL AUTO_INCREMENT, - nom varchar(100) NOT NULL UNIQUE, - prenom varchar(100) NOT NULL, - date_naissance date NOT NULL, - genre ENUM('MASCULIN','FEMININ','AUTRE'), - statut ENUM('CADRE','NON-CADRE','ALTERNANT','STAGIAIRE'), - nombre_enfants smallint, - telephone varchar(15), - mail_personnel varchar(100), - mail_apside varchar(100), - date_depart date, - parrain_id int, - CONSTRAINT FK_COLLABORATEUR_PARRAIN FOREIGN KEY (parrain_id) REFERENCES collaborateur(id), - PRIMARY KEY (id) -); - -DROP TABLE IF EXISTS referencement; -CREATE TABLE IF NOT EXISTS referencement( - id int NOT NULL AUTO_INCREMENT, - date_debut date NOT NULL, - date_fin date NOT NULL, - refere_id int NOT NULL, - referent_id int NOT NULL, - CONSTRAINT FK_COLLABORATEUR_REFERE FOREIGN KEY (refere_id) REFERENCES collaborateur(id), - CONSTRAINT FK_COLLABORATEUR_REFERENT FOREIGN KEY (referent_id) REFERENCES collaborateur(id), - PRIMARY KEY (id) -); - -DROP TABLE IF EXISTS collaborateur_est_fonction; -CREATE TABLE IF NOT EXISTS collaborateur_est_fonction( - collaborateur_id int NOT NULL, - fonction_id int NOT NULL, - PRIMARY KEY (collaborateur_id,fonction_id), - CONSTRAINT FK_COLLABORATEUR_FONCTION FOREIGN KEY (collaborateur_id) REFERENCES collaborateur(id), - CONSTRAINT FK_FONCTION_COLLABORATEUR FOREIGN KEY (fonction_id) REFERENCES fonction(id) -); - -DROP TABLE IF EXISTS collaborateur_appartient_business_unit; -CREATE TABLE IF NOT EXISTS collaborateur_appartient_business_unit( - collaborateur_id int NOT NULL, - business_unit_id int NOT NULL, - PRIMARY KEY (collaborateur_id,business_unit_id), - CONSTRAINT FK_COLLABORATEUR_BUSINESS_UNIT FOREIGN KEY (collaborateur_id) REFERENCES collaborateur(id), - CONSTRAINT FK_BUSINESS_UNIT_COLLABORATEUR FOREIGN KEY (business_unit_id) REFERENCES business_unit(id) -); - -DROP TABLE IF EXISTS collaborateur_effectue_periode_essai; -CREATE TABLE IF NOT EXISTS collaborateur_effectue_periode_essai( - collaborateur_id int NOT NULL, - periode_essai_id int NOT NULL, - PRIMARY KEY (collaborateur_id,periode_essai_id), - CONSTRAINT FK_COLLABORATEUR_PERIODE_ESSAI FOREIGN KEY (collaborateur_id) REFERENCES collaborateur(id), - CONSTRAINT FK_PERIODE_ESSAI_COLLABORATEUR FOREIGN KEY (periode_essai_id) REFERENCES periode_essai(id) -); - -DROP TABLE IF EXISTS site_developpe_projet; -CREATE TABLE IF NOT EXISTS site_developpe_projet( - site_id int NOT NULL, - projet_id int NOT NULL, - PRIMARY KEY (site_id,projet_id), - CONSTRAINT FK_SITE_PROJET FOREIGN KEY (site_id) REFERENCES site(id), - CONSTRAINT FK_PROJET_SITE FOREIGN KEY (projet_id) REFERENCES projet(id) -); - -DROP TABLE IF EXISTS projet_utilise_technologie; -CREATE TABLE IF NOT EXISTS projet_utilise_technologie( - projet_id int NOT NULL, - technologie_id int NOT NULL, - PRIMARY KEY (projet_id,technologie_id), - CONSTRAINT FK_PROJET_TECHNOLOGIE FOREIGN KEY (projet_id) REFERENCES projet(id), - CONSTRAINT FK_TECHNOLOGIE_PROJET FOREIGN KEY (technologie_id) REFERENCES technologie(id) -); - -DROP TABLE IF EXISTS collaborateur_manage_projet; -CREATE TABLE IF NOT EXISTS collaborateur_manage_projet( - collaborateur_id int NOT NULL, - projet_id int NOT NULL, - PRIMARY KEY (collaborateur_id,projet_id), - CONSTRAINT FK_COLLABORATEUR_MANAGE_PROJET FOREIGN KEY (collaborateur_id) REFERENCES collaborateur(id), - CONSTRAINT FK_PROJET_MANAGE_COLLABORATEUR FOREIGN KEY (projet_id) REFERENCES projet(id) -); - -DROP TABLE IF EXISTS collaborateur_collabore_projet; -CREATE TABLE IF NOT EXISTS collaborateur_collabore_projet( - collaborateur_id int NOT NULL, - projet_id int NOT NULL, - PRIMARY KEY (collaborateur_id,projet_id), - CONSTRAINT FK_COLLABORATEUR_COLLABORE_PROJET FOREIGN KEY (collaborateur_id) REFERENCES collaborateur(id), - CONSTRAINT FK_PROJET_COLLABORE_COLLABORATEUR FOREIGN KEY (projet_id) REFERENCES projet(id) -); diff --git a/Collaborateur_Epa_Back/espacecollab.backend.api/Program.cs b/Collaborateur_Epa_Back/espacecollab.backend.api/Program.cs new file mode 100644 index 0000000..48863a6 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.api/Program.cs @@ -0,0 +1,25 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. + +builder.Services.AddControllers(); +// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} + +app.UseHttpsRedirection(); + +app.UseAuthorization(); + +app.MapControllers(); + +app.Run(); diff --git a/Collaborateur_Epa_Back/espacecollab.backend.api/Properties/launchSettings.json b/Collaborateur_Epa_Back/espacecollab.backend.api/Properties/launchSettings.json new file mode 100644 index 0000000..631c563 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.api/Properties/launchSettings.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:27916", + "sslPort": 44341 + } + }, + "profiles": { + "espacecollab.backend.api": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7125;http://localhost:5125", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.Development.json b/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.json b/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.api/espacecollab.backend.api.csproj b/Collaborateur_Epa_Back/espacecollab.backend.api/espacecollab.backend.api.csproj new file mode 100644 index 0000000..14554a8 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.api/espacecollab.backend.api.csproj @@ -0,0 +1,17 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + diff --git a/Collaborateur_Epa_Back/espacecollab.backend.appservices.dtos/espacecollab.backend.appservices.dtos.csproj b/Collaborateur_Epa_Back/espacecollab.backend.appservices.dtos/espacecollab.backend.appservices.dtos.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.appservices.dtos/espacecollab.backend.appservices.dtos.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Collaborateur_Epa_Back/espacecollab.backend.appservices/espacecollab.backend.appservices.csproj b/Collaborateur_Epa_Back/espacecollab.backend.appservices/espacecollab.backend.appservices.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.appservices/espacecollab.backend.appservices.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs new file mode 100644 index 0000000..b556e9d --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class AgenceDto + { + private Guid Id { get; set; } + private string Name { get; set; } + + [ExcludeFromCodeCoverage] + private AgenceDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs new file mode 100644 index 0000000..0b943f7 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs @@ -0,0 +1,17 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class BusinessUnitDto + { + private Guid Id { get; set; } + private string Name { get; set; } + private Guid AgenceId { get; set; } + + + [ExcludeFromCodeCoverage] + private BusinessUnitDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs new file mode 100644 index 0000000..6e563fd --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurAppartientBusinessUnitDto + { + private Guid CollaborateurId { get; set; } + private Guid BusinessUnitId { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurAppartientBusinessUnitDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs new file mode 100644 index 0000000..2ea983a --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class CollaborateurCollaboreProjetDto + { + private Guid CollaborateurId { get; set; } + private Guid ProjetId { get; set; } + private bool IsManager { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurCollaboreProjetDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs new file mode 100644 index 0000000..2b69073 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs @@ -0,0 +1,31 @@ +using espacecollab.backend.infrastructure.sql.dtos.Enums; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class CollaborateurDto + { + private Guid Id { get; set; } + private string Name { get; set; } + private string FirstName { get; set; } + private DateTime BirthDate { get; set; } + private EnumGenre Gender { get; set; } + private EnumStatut Status { get; set; } + private int ChildrenNumber { get; set; } + private string Telephone { get; set; } + private string PersonalMail { get; set; } + private string ApsideMail { get; set; } + private DateTime ResignationDate { get; set; } + private Guid ReferrerId { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs new file mode 100644 index 0000000..8015c76 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurEffectuePeriodeEssaiDto + { + private Guid CollaborateurId { get; set; } + private Guid PeriodeEssaiId { get; set;} + + [ExcludeFromCodeCoverage] + private CollaborateurEffectuePeriodeEssaiDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs new file mode 100644 index 0000000..2d58d06 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurEstFonctionDto + { + private Guid CollaborateurId { get; set; } + private Guid FonctionId { get; set;} + + [ExcludeFromCodeCoverage] + private CollaborateurEstFonctionDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs new file mode 100644 index 0000000..ceeb2da --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs @@ -0,0 +1,9 @@ +namespace espacecollab.backend.infrastructure.sql.dtos.Enums +{ + enum EnumGenre + { + MASCULIN, + FEMININ, + AUTRE + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs new file mode 100644 index 0000000..1dd3356 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs @@ -0,0 +1,11 @@ +namespace espacecollab.backend.infrastructure.sql.dtos +{ + enum EnumIssue + { + VALIDEE, + PROLONGEE_COLLAB, + PROLONGEE_APSIDE, + ARRETEE_COLLAB, + ARRETEE_APSIDE + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs new file mode 100644 index 0000000..37fbd1a --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs @@ -0,0 +1,10 @@ +namespace espacecollab.backend.infrastructure.sql.dtos.Enums +{ + enum EnumStatut + { + CADRE, + NONCADRE, + ALTERNANT, + STAGIAIRE + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs new file mode 100644 index 0000000..b1e8212 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class FonctionDto + { + private Guid Id { get; set; } + private string Name { get; set; } + + [ExcludeFromCodeCoverage] + private FonctionDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs new file mode 100644 index 0000000..23e145a --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs @@ -0,0 +1,19 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class PeriodeEssaiDto + { + private Guid Id { get; set; } + private DateTime StartingDate { get; set; } + private DateTime PlannedEndingDate { get; set; } + private DateTime RealEndingDate { get; set; } + private string Comment { get; set; } + private EnumIssue Issue { get; set; } + + [ExcludeFromCodeCoverage] + private PeriodeEssaiDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs new file mode 100644 index 0000000..6dc6f9d --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs @@ -0,0 +1,19 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ProjetDto + { + private Guid Id { get; set; } + private string Name { get; set; } + private string Client { get; set; } + private string Description { get; set; } + private DateTime StartingDate { get; set; } + private DateTime EndingDate { get; set; } + + [ExcludeFromCodeCoverage] + private ProjetDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs new file mode 100644 index 0000000..4bd4f0b --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ProjetUtiliseTechnologieDto + { + private Guid ProjetId { get; set; } + private Guid TechnologieId { get; set; } + + [ExcludeFromCodeCoverage] + private ProjetUtiliseTechnologieDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs new file mode 100644 index 0000000..ed4a3dd --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ReferencementDto + { + private Guid Id { get; set; } + private DateTime StartingDate { get; set; } + private DateTime EndingDate { get; set; } + private Guid ReferredId { get; set; } + private Guid ReferrerId { get; set; } + + [ExcludeFromCodeCoverage] + private ReferencementDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs new file mode 100644 index 0000000..6d6daf3 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class SiteDeveloppeProjetDto + { + private Guid SiteId { get; set; } + private Guid ProjetId { get; set; } + + [ExcludeFromCodeCoverage] + private SiteDeveloppeProjetDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs new file mode 100644 index 0000000..5b40c41 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs @@ -0,0 +1,17 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class SiteDto + { + private Guid Id { get; set; } + private string Name { get; set; } + private string Address { get; set; } + private Guid BusinessUnitId { get; set; } + + [ExcludeFromCodeCoverage] + private SiteDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs new file mode 100644 index 0000000..4c43c83 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs @@ -0,0 +1,15 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class TechnologieDto + { + private Guid Id { get; set; } + private string Name { get; set; } + + [ExcludeFromCodeCoverage] + private TechnologieDto() + { + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/espacecollab.backend.infrastructure.sql.dtos.csproj b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/espacecollab.backend.infrastructure.sql.dtos.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/espacecollab.backend.infrastructure.sql.dtos.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql new file mode 100644 index 0000000..4da6c52 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql @@ -0,0 +1,152 @@ +DROP DATABASE IF EXISTS collaborateur_epa; +CREATE DATABASE IF NOT EXISTS collaborateur_epa /*!40100 DEFAULT CHARACTER SET latin1 */; +USE collaborateur_epa; + +DROP TABLE IF EXISTS agence; +CREATE TABLE IF NOT EXISTS agence( + Id int NOT NULL AUTO_INCREMENT, + Name varchar(100) NOT NULL UNIQUE, + PRIMARY KEY (Id) +); + +DROP TABLE IF EXISTS business_unit; +CREATE TABLE IF NOT EXISTS business_unit( + Id int NOT NULL AUTO_INCREMENT, + Name varchar(100) NOT NULL UNIQUE, + AgenceId int NOT NULL, + CONSTRAINT FK_BUSINESS_UNIT_AGENCE FOREIGN KEY (AgenceId) references agence(Id), + PRIMARY KEY (Id) +); + +DROP TABLE IF EXISTS site; +CREATE TABLE IF NOT EXISTS site( + Id int NOT NULL AUTO_INCREMENT, + Name varchar(100) NOT NULL UNIQUE, + Address varchar(200) NOT NULL, + BusinessUnitId int NOT NULL, + CONSTRAINT FK_SITE_BUSINESS_UNIT FOREIGN KEY (BusinessUnitId) references business_unit(Id), + PRIMARY KEY (Id) +); + +DROP TABLE IF EXISTS projet; +CREATE TABLE IF NOT EXISTS projet( + Id int NOT NULL AUTO_INCREMENT, + Name varchar(100) NOT NULL UNIQUE, + Client varchar(100) NOT NULL, + Description varchar(100) NOT NULL, + StartingDate date NOT NULL, + EndingDate date NOT NULL, + PRIMARY KEY (Id) +); + +DROP TABLE IF EXISTS technologie; +CREATE TABLE IF NOT EXISTS technologie( + Id int NOT NULL UNIQUE, + Name varchar(100) NOT NULL UNIQUE, + PRIMARY KEY (Id) +); + + + +DROP TABLE IF EXISTS periode_essai; +CREATE TABLE IF NOT EXISTS periode_essai( + Id int NOT NULL AUTO_INCREMENT, + StartingDate date NOT NULL, + PlannedEndingDate date NOT NULL, + RealEndingDate date NOT NULL, + Comment varchar(100) NOT NULL, + Issue ENUM('VALIDEE','PROLONGEE_COLLAB','PROLONGEE_APSIDE','ARRETEE_COLLAB','ARRETEE_APSIDE') NOT NULL, + PRIMARY KEY (Id) +); + +DROP TABLE IF EXISTS fonction; +CREATE TABLE IF NOT EXISTS fonction( + Id int NOT NULL UNIQUE, + intitule varchar(100) NOT NULL UNIQUE, + PRIMARY KEY (Id) +); + +DROP TABLE IF EXISTS collaborateur; +CREATE TABLE IF NOT EXISTS collaborateur( + Id int NOT NULL AUTO_INCREMENT, + Name varchar(100) NOT NULL UNIQUE, + FirstName varchar(100) NOT NULL, + BirthDate date NOT NULL, + Gender ENUM('MASCULIN','FEMININ','AUTRE') NOT NULL, + Status ENUM('CADRE','NONCADRE','ALTERNANT','STAGIAIRE') NOT NULL, + ChildrenNumber smallint NOT NULL, + Telephone varchar(15) NOT NULL, + PersonalMail varchar(100) NOT NULL, + ApsideMail varchar(100) NOT NULL, + ResignationDate date NOT NULL, + ReferrerId int NOT NULL, + CONSTRAINT FK_COLLABORATEUR_PARRAIN FOREIGN KEY (ReferrerId) REFERENCES collaborateur(Id), + PRIMARY KEY (Id) +); + +DROP TABLE IF EXISTS referencement; +CREATE TABLE IF NOT EXISTS referencement( + Id int NOT NULL AUTO_INCREMENT, + StartingDate date NOT NULL, + EndingDate date NOT NULL, + ReferredId int NOT NULL, + ReferrerId int NOT NULL, + CONSTRAINT FK_COLLABORATEUR_REFERE FOREIGN KEY (ReferredId) REFERENCES collaborateur(Id), + CONSTRAINT FK_COLLABORATEUR_REFERENT FOREIGN KEY (ReferrerId) REFERENCES collaborateur(Id), + PRIMARY KEY (Id) +); + +DROP TABLE IF EXISTS collaborateur_est_fonction; +CREATE TABLE IF NOT EXISTS collaborateur_est_fonction( + CollaborateurId int NOT NULL, + FonctionId int NOT NULL, + PRIMARY KEY (CollaborateurId,FonctionId), + CONSTRAINT FK_COLLABORATEUR_FONCTION FOREIGN KEY (CollaborateurId) REFERENCES collaborateur(Id), + CONSTRAINT FK_FONCTION_COLLABORATEUR FOREIGN KEY (FonctionId) REFERENCES fonction(Id) +); + +DROP TABLE IF EXISTS collaborateur_appartient_business_unit; +CREATE TABLE IF NOT EXISTS collaborateur_appartient_business_unit( + CollaborateurId int NOT NULL, + BusinessUnitId int NOT NULL, + PRIMARY KEY (CollaborateurId,BusinessUnitId), + CONSTRAINT FK_COLLABORATEUR_BUSINESS_UNIT FOREIGN KEY (CollaborateurId) REFERENCES collaborateur(Id), + CONSTRAINT FK_BUSINESS_UNIT_COLLABORATEUR FOREIGN KEY (BusinessUnitId) REFERENCES business_unit(Id) +); + +DROP TABLE IF EXISTS collaborateur_effectue_periode_essai; +CREATE TABLE IF NOT EXISTS collaborateur_effectue_periode_essai( + CollaborateurId int NOT NULL, + PeriodeEssaiId int NOT NULL, + PRIMARY KEY (CollaborateurId,PeriodeEssaiId), + CONSTRAINT FK_COLLABORATEUR_PERIODE_ESSAI FOREIGN KEY (CollaborateurId) REFERENCES collaborateur(Id), + CONSTRAINT FK_PERIODE_ESSAI_COLLABORATEUR FOREIGN KEY (PeriodeEssaiId) REFERENCES periode_essai(Id) +); + +DROP TABLE IF EXISTS site_developpe_projet; +CREATE TABLE IF NOT EXISTS site_developpe_projet( + SiteId int NOT NULL, + ProjetId int NOT NULL, + PRIMARY KEY (SiteId,ProjetId), + CONSTRAINT FK_SITE_PROJET FOREIGN KEY (SiteId) REFERENCES site(Id), + CONSTRAINT FK_PROJET_SITE FOREIGN KEY (ProjetId) REFERENCES projet(Id) +); + +DROP TABLE IF EXISTS projet_utilise_technologie; +CREATE TABLE IF NOT EXISTS projet_utilise_technologie( + ProjetId int NOT NULL, + TechnologieId int NOT NULL, + PRIMARY KEY (ProjetId,TechnologieId), + CONSTRAINT FK_PROJET_TECHNOLOGIE FOREIGN KEY (ProjetId) REFERENCES projet(Id), + CONSTRAINT FK_TECHNOLOGIE_PROJET FOREIGN KEY (TechnologieId) REFERENCES technologie(Id) +); + +DROP TABLE IF EXISTS collaborateur_collabore_projet; +CREATE TABLE IF NOT EXISTS collaborateur_collabore_projet( + CollaborateurId int NOT NULL, + ProjetId int NOT NULL, + isManager boolean NOT NULL, + PRIMARY KEY (CollaborateurId,ProjetId), + CONSTRAINT FK_COLLABORATEUR_COLLABORE_PROJET FOREIGN KEY (CollaborateurId) REFERENCES collaborateur(Id), + CONSTRAINT FK_PROJET_COLLABORE_COLLABORATEUR FOREIGN KEY (ProjetId) REFERENCES projet(Id) +); diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/espacecollab.backend.infrastructure.sql.csproj b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/espacecollab.backend.infrastructure.sql.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/espacecollab.backend.infrastructure.sql.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Collaborateur_Epa_Back/espacecollab.backend.sln b/Collaborateur_Epa_Back/espacecollab.backend.sln new file mode 100644 index 0000000..26e96a6 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.sln @@ -0,0 +1,49 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31912.275 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "espacecollab.backend.api", "espacecollab.backend.api\espacecollab.backend.api.csproj", "{A8DEB005-D7E2-4A96-B004-A66BBF12AC54}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "espacecollab.backend.appservices", "espacecollab.backend.appservices\espacecollab.backend.appservices.csproj", "{70F1BE1C-87C1-4CCF-A7E8-2A36F3F16D9E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "espacecollab.backend.appservices.dtos", "espacecollab.backend.appservices.dtos\espacecollab.backend.appservices.dtos.csproj", "{CB0CB8FC-0E53-4205-AAA3-4176211C922B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "espacecollab.backend.infrastructure.sql", "espacecollab.backend.infrastructure.sql\espacecollab.backend.infrastructure.sql.csproj", "{590FF09D-0DF3-4881-8D86-E4FDAAC75FDC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "espacecollab.backend.infrastructure.sql.dtos", "espacecollab.backend.infrastructure.sql.dtos\espacecollab.backend.infrastructure.sql.dtos.csproj", "{26C08CE0-E6E5-4E03-8AEA-233F93218A3B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A8DEB005-D7E2-4A96-B004-A66BBF12AC54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A8DEB005-D7E2-4A96-B004-A66BBF12AC54}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A8DEB005-D7E2-4A96-B004-A66BBF12AC54}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A8DEB005-D7E2-4A96-B004-A66BBF12AC54}.Release|Any CPU.Build.0 = Release|Any CPU + {70F1BE1C-87C1-4CCF-A7E8-2A36F3F16D9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {70F1BE1C-87C1-4CCF-A7E8-2A36F3F16D9E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {70F1BE1C-87C1-4CCF-A7E8-2A36F3F16D9E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {70F1BE1C-87C1-4CCF-A7E8-2A36F3F16D9E}.Release|Any CPU.Build.0 = Release|Any CPU + {CB0CB8FC-0E53-4205-AAA3-4176211C922B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CB0CB8FC-0E53-4205-AAA3-4176211C922B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CB0CB8FC-0E53-4205-AAA3-4176211C922B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CB0CB8FC-0E53-4205-AAA3-4176211C922B}.Release|Any CPU.Build.0 = Release|Any CPU + {590FF09D-0DF3-4881-8D86-E4FDAAC75FDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {590FF09D-0DF3-4881-8D86-E4FDAAC75FDC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {590FF09D-0DF3-4881-8D86-E4FDAAC75FDC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {590FF09D-0DF3-4881-8D86-E4FDAAC75FDC}.Release|Any CPU.Build.0 = Release|Any CPU + {26C08CE0-E6E5-4E03-8AEA-233F93218A3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {26C08CE0-E6E5-4E03-8AEA-233F93218A3B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {26C08CE0-E6E5-4E03-8AEA-233F93218A3B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {26C08CE0-E6E5-4E03-8AEA-233F93218A3B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0A56A44C-135E-4CE4-834B-8DFDF69DC415} + EndGlobalSection +EndGlobal From cf08ebda82f5cc29eb725f806e732cde5459d6d8 Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Thu, 18 Nov 2021 15:21:56 +0100 Subject: [PATCH 2/7] =?UTF-8?q?Corrections=20de=20nommage=20et=20ajout=20d?= =?UTF-8?q?e=20l'adresse=20oubli=C3=A9=20dans=20le=20collaborateur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollaborateurDto.cs | 1 + .../db/db_1_0_0.sql | 61 ++++++++++--------- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs index 2b69073..bb09b78 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs @@ -17,6 +17,7 @@ namespace espacecollab.backend.infrastructure.sql.dtos private EnumGenre Gender { get; set; } private EnumStatut Status { get; set; } private int ChildrenNumber { get; set; } + private string Address { get; set; } private string Telephone { get; set; } private string PersonalMail { get; set; } private string ApsideMail { get; set; } diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql index 4da6c52..6ab8688 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql @@ -2,15 +2,15 @@ DROP DATABASE IF EXISTS collaborateur_epa; CREATE DATABASE IF NOT EXISTS collaborateur_epa /*!40100 DEFAULT CHARACTER SET latin1 */; USE collaborateur_epa; -DROP TABLE IF EXISTS agence; -CREATE TABLE IF NOT EXISTS agence( +DROP TABLE IF EXISTS Agence; +CREATE TABLE IF NOT EXISTS Agence( Id int NOT NULL AUTO_INCREMENT, Name varchar(100) NOT NULL UNIQUE, PRIMARY KEY (Id) ); -DROP TABLE IF EXISTS business_unit; -CREATE TABLE IF NOT EXISTS business_unit( +DROP TABLE IF EXISTS BusinessUnit; +CREATE TABLE IF NOT EXISTS BusinessUnit( Id int NOT NULL AUTO_INCREMENT, Name varchar(100) NOT NULL UNIQUE, AgenceId int NOT NULL, @@ -18,8 +18,8 @@ CREATE TABLE IF NOT EXISTS business_unit( PRIMARY KEY (Id) ); -DROP TABLE IF EXISTS site; -CREATE TABLE IF NOT EXISTS site( +DROP TABLE IF EXISTS Site; +CREATE TABLE IF NOT EXISTS Site( Id int NOT NULL AUTO_INCREMENT, Name varchar(100) NOT NULL UNIQUE, Address varchar(200) NOT NULL, @@ -28,8 +28,8 @@ CREATE TABLE IF NOT EXISTS site( PRIMARY KEY (Id) ); -DROP TABLE IF EXISTS projet; -CREATE TABLE IF NOT EXISTS projet( +DROP TABLE IF EXISTS Projet; +CREATE TABLE IF NOT EXISTS Projet( Id int NOT NULL AUTO_INCREMENT, Name varchar(100) NOT NULL UNIQUE, Client varchar(100) NOT NULL, @@ -39,8 +39,8 @@ CREATE TABLE IF NOT EXISTS projet( PRIMARY KEY (Id) ); -DROP TABLE IF EXISTS technologie; -CREATE TABLE IF NOT EXISTS technologie( +DROP TABLE IF EXISTS Technologie; +CREATE TABLE IF NOT EXISTS Technologie( Id int NOT NULL UNIQUE, Name varchar(100) NOT NULL UNIQUE, PRIMARY KEY (Id) @@ -48,8 +48,8 @@ CREATE TABLE IF NOT EXISTS technologie( -DROP TABLE IF EXISTS periode_essai; -CREATE TABLE IF NOT EXISTS periode_essai( +DROP TABLE IF EXISTS PeriodeEssai; +CREATE TABLE IF NOT EXISTS PeriodeEssai( Id int NOT NULL AUTO_INCREMENT, StartingDate date NOT NULL, PlannedEndingDate date NOT NULL, @@ -59,15 +59,15 @@ CREATE TABLE IF NOT EXISTS periode_essai( PRIMARY KEY (Id) ); -DROP TABLE IF EXISTS fonction; -CREATE TABLE IF NOT EXISTS fonction( +DROP TABLE IF EXISTS Fonction; +CREATE TABLE IF NOT EXISTS Fonction( Id int NOT NULL UNIQUE, intitule varchar(100) NOT NULL UNIQUE, PRIMARY KEY (Id) ); -DROP TABLE IF EXISTS collaborateur; -CREATE TABLE IF NOT EXISTS collaborateur( +DROP TABLE IF EXISTS Collaborateur; +CREATE TABLE IF NOT EXISTS Collaborateur( Id int NOT NULL AUTO_INCREMENT, Name varchar(100) NOT NULL UNIQUE, FirstName varchar(100) NOT NULL, @@ -75,6 +75,7 @@ CREATE TABLE IF NOT EXISTS collaborateur( Gender ENUM('MASCULIN','FEMININ','AUTRE') NOT NULL, Status ENUM('CADRE','NONCADRE','ALTERNANT','STAGIAIRE') NOT NULL, ChildrenNumber smallint NOT NULL, + Address varchar(200) NOT NULL, Telephone varchar(15) NOT NULL, PersonalMail varchar(100) NOT NULL, ApsideMail varchar(100) NOT NULL, @@ -84,8 +85,8 @@ CREATE TABLE IF NOT EXISTS collaborateur( PRIMARY KEY (Id) ); -DROP TABLE IF EXISTS referencement; -CREATE TABLE IF NOT EXISTS referencement( +DROP TABLE IF EXISTS Referencement; +CREATE TABLE IF NOT EXISTS Referencement( Id int NOT NULL AUTO_INCREMENT, StartingDate date NOT NULL, EndingDate date NOT NULL, @@ -96,8 +97,8 @@ CREATE TABLE IF NOT EXISTS referencement( PRIMARY KEY (Id) ); -DROP TABLE IF EXISTS collaborateur_est_fonction; -CREATE TABLE IF NOT EXISTS collaborateur_est_fonction( +DROP TABLE IF EXISTS CollaborateurEstFonction; +CREATE TABLE IF NOT EXISTS CollaborateurEstFonction( CollaborateurId int NOT NULL, FonctionId int NOT NULL, PRIMARY KEY (CollaborateurId,FonctionId), @@ -105,8 +106,8 @@ CREATE TABLE IF NOT EXISTS collaborateur_est_fonction( CONSTRAINT FK_FONCTION_COLLABORATEUR FOREIGN KEY (FonctionId) REFERENCES fonction(Id) ); -DROP TABLE IF EXISTS collaborateur_appartient_business_unit; -CREATE TABLE IF NOT EXISTS collaborateur_appartient_business_unit( +DROP TABLE IF EXISTS CollaborateurAppartientBusinessUnit; +CREATE TABLE IF NOT EXISTS CollaborateurAppartientBusinessUnit( CollaborateurId int NOT NULL, BusinessUnitId int NOT NULL, PRIMARY KEY (CollaborateurId,BusinessUnitId), @@ -114,8 +115,8 @@ CREATE TABLE IF NOT EXISTS collaborateur_appartient_business_unit( CONSTRAINT FK_BUSINESS_UNIT_COLLABORATEUR FOREIGN KEY (BusinessUnitId) REFERENCES business_unit(Id) ); -DROP TABLE IF EXISTS collaborateur_effectue_periode_essai; -CREATE TABLE IF NOT EXISTS collaborateur_effectue_periode_essai( +DROP TABLE IF EXISTS CollaborateurEffectuePeriodeEssai; +CREATE TABLE IF NOT EXISTS CollaborateurEffectuePeriodeEssai( CollaborateurId int NOT NULL, PeriodeEssaiId int NOT NULL, PRIMARY KEY (CollaborateurId,PeriodeEssaiId), @@ -123,8 +124,8 @@ CREATE TABLE IF NOT EXISTS collaborateur_effectue_periode_essai( CONSTRAINT FK_PERIODE_ESSAI_COLLABORATEUR FOREIGN KEY (PeriodeEssaiId) REFERENCES periode_essai(Id) ); -DROP TABLE IF EXISTS site_developpe_projet; -CREATE TABLE IF NOT EXISTS site_developpe_projet( +DROP TABLE IF EXISTS SiteDeveloppeProjet; +CREATE TABLE IF NOT EXISTS SiteDeveloppeProjet( SiteId int NOT NULL, ProjetId int NOT NULL, PRIMARY KEY (SiteId,ProjetId), @@ -132,8 +133,8 @@ CREATE TABLE IF NOT EXISTS site_developpe_projet( CONSTRAINT FK_PROJET_SITE FOREIGN KEY (ProjetId) REFERENCES projet(Id) ); -DROP TABLE IF EXISTS projet_utilise_technologie; -CREATE TABLE IF NOT EXISTS projet_utilise_technologie( +DROP TABLE IF EXISTS ProjetUtiliseTechnologie; +CREATE TABLE IF NOT EXISTS ProjetUtiliseTechnologie( ProjetId int NOT NULL, TechnologieId int NOT NULL, PRIMARY KEY (ProjetId,TechnologieId), @@ -141,8 +142,8 @@ CREATE TABLE IF NOT EXISTS projet_utilise_technologie( CONSTRAINT FK_TECHNOLOGIE_PROJET FOREIGN KEY (TechnologieId) REFERENCES technologie(Id) ); -DROP TABLE IF EXISTS collaborateur_collabore_projet; -CREATE TABLE IF NOT EXISTS collaborateur_collabore_projet( +DROP TABLE IF EXISTS CollaborateurCollaboreProjet; +CREATE TABLE IF NOT EXISTS CollaborateurCollaboreProjet( CollaborateurId int NOT NULL, ProjetId int NOT NULL, isManager boolean NOT NULL, From f7ef2e912d70480e58a654ae8a1a2458e3a73c88 Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Thu, 18 Nov 2021 15:25:28 +0100 Subject: [PATCH 3/7] Corrections de nommage --- .../db/db_1_0_0.sql | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql index 6ab8688..f193947 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql @@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS BusinessUnit( Id int NOT NULL AUTO_INCREMENT, Name varchar(100) NOT NULL UNIQUE, AgenceId int NOT NULL, - CONSTRAINT FK_BUSINESS_UNIT_AGENCE FOREIGN KEY (AgenceId) references agence(Id), + CONSTRAINT FK_BUSINESS_UNIT_AGENCE FOREIGN KEY (AgenceId) references Agence(Id), PRIMARY KEY (Id) ); @@ -24,7 +24,7 @@ CREATE TABLE IF NOT EXISTS Site( Name varchar(100) NOT NULL UNIQUE, Address varchar(200) NOT NULL, BusinessUnitId int NOT NULL, - CONSTRAINT FK_SITE_BUSINESS_UNIT FOREIGN KEY (BusinessUnitId) references business_unit(Id), + CONSTRAINT FK_SITE_BUSINESS_UNIT FOREIGN KEY (BusinessUnitId) references BusinessUnit(Id), PRIMARY KEY (Id) ); @@ -81,7 +81,7 @@ CREATE TABLE IF NOT EXISTS Collaborateur( ApsideMail varchar(100) NOT NULL, ResignationDate date NOT NULL, ReferrerId int NOT NULL, - CONSTRAINT FK_COLLABORATEUR_PARRAIN FOREIGN KEY (ReferrerId) REFERENCES collaborateur(Id), + CONSTRAINT FK_COLLABORATEUR_PARRAIN FOREIGN KEY (ReferrerId) REFERENCES Collaborateur(Id), PRIMARY KEY (Id) ); @@ -92,8 +92,8 @@ CREATE TABLE IF NOT EXISTS Referencement( EndingDate date NOT NULL, ReferredId int NOT NULL, ReferrerId int NOT NULL, - CONSTRAINT FK_COLLABORATEUR_REFERE FOREIGN KEY (ReferredId) REFERENCES collaborateur(Id), - CONSTRAINT FK_COLLABORATEUR_REFERENT FOREIGN KEY (ReferrerId) REFERENCES collaborateur(Id), + CONSTRAINT FK_COLLABORATEUR_REFERE FOREIGN KEY (ReferredId) REFERENCES Collaborateur(Id), + CONSTRAINT FK_COLLABORATEUR_REFERENT FOREIGN KEY (ReferrerId) REFERENCES Collaborateur(Id), PRIMARY KEY (Id) ); @@ -102,8 +102,8 @@ CREATE TABLE IF NOT EXISTS CollaborateurEstFonction( CollaborateurId int NOT NULL, FonctionId int NOT NULL, PRIMARY KEY (CollaborateurId,FonctionId), - CONSTRAINT FK_COLLABORATEUR_FONCTION FOREIGN KEY (CollaborateurId) REFERENCES collaborateur(Id), - CONSTRAINT FK_FONCTION_COLLABORATEUR FOREIGN KEY (FonctionId) REFERENCES fonction(Id) + CONSTRAINT FK_COLLABORATEUR_FONCTION FOREIGN KEY (CollaborateurId) REFERENCES Collaborateur(Id), + CONSTRAINT FK_FONCTION_COLLABORATEUR FOREIGN KEY (FonctionId) REFERENCES Fonction(Id) ); DROP TABLE IF EXISTS CollaborateurAppartientBusinessUnit; @@ -111,8 +111,8 @@ CREATE TABLE IF NOT EXISTS CollaborateurAppartientBusinessUnit( CollaborateurId int NOT NULL, BusinessUnitId int NOT NULL, PRIMARY KEY (CollaborateurId,BusinessUnitId), - CONSTRAINT FK_COLLABORATEUR_BUSINESS_UNIT FOREIGN KEY (CollaborateurId) REFERENCES collaborateur(Id), - CONSTRAINT FK_BUSINESS_UNIT_COLLABORATEUR FOREIGN KEY (BusinessUnitId) REFERENCES business_unit(Id) + CONSTRAINT FK_COLLABORATEUR_BUSINESS_UNIT FOREIGN KEY (CollaborateurId) REFERENCES Collaborateur(Id), + CONSTRAINT FK_BUSINESS_UNIT_COLLABORATEUR FOREIGN KEY (BusinessUnitId) REFERENCES BusinessUnit(Id) ); DROP TABLE IF EXISTS CollaborateurEffectuePeriodeEssai; @@ -120,8 +120,8 @@ CREATE TABLE IF NOT EXISTS CollaborateurEffectuePeriodeEssai( CollaborateurId int NOT NULL, PeriodeEssaiId int NOT NULL, PRIMARY KEY (CollaborateurId,PeriodeEssaiId), - CONSTRAINT FK_COLLABORATEUR_PERIODE_ESSAI FOREIGN KEY (CollaborateurId) REFERENCES collaborateur(Id), - CONSTRAINT FK_PERIODE_ESSAI_COLLABORATEUR FOREIGN KEY (PeriodeEssaiId) REFERENCES periode_essai(Id) + CONSTRAINT FK_COLLABORATEUR_PERIODE_ESSAI FOREIGN KEY (CollaborateurId) REFERENCES Collaborateur(Id), + CONSTRAINT FK_PERIODE_ESSAI_COLLABORATEUR FOREIGN KEY (PeriodeEssaiId) REFERENCES BusinessUnit(Id) ); DROP TABLE IF EXISTS SiteDeveloppeProjet; @@ -129,8 +129,8 @@ CREATE TABLE IF NOT EXISTS SiteDeveloppeProjet( SiteId int NOT NULL, ProjetId int NOT NULL, PRIMARY KEY (SiteId,ProjetId), - CONSTRAINT FK_SITE_PROJET FOREIGN KEY (SiteId) REFERENCES site(Id), - CONSTRAINT FK_PROJET_SITE FOREIGN KEY (ProjetId) REFERENCES projet(Id) + CONSTRAINT FK_SITE_PROJET FOREIGN KEY (SiteId) REFERENCES Site(Id), + CONSTRAINT FK_PROJET_SITE FOREIGN KEY (ProjetId) REFERENCES Projet(Id) ); DROP TABLE IF EXISTS ProjetUtiliseTechnologie; @@ -138,8 +138,8 @@ CREATE TABLE IF NOT EXISTS ProjetUtiliseTechnologie( ProjetId int NOT NULL, TechnologieId int NOT NULL, PRIMARY KEY (ProjetId,TechnologieId), - CONSTRAINT FK_PROJET_TECHNOLOGIE FOREIGN KEY (ProjetId) REFERENCES projet(Id), - CONSTRAINT FK_TECHNOLOGIE_PROJET FOREIGN KEY (TechnologieId) REFERENCES technologie(Id) + CONSTRAINT FK_PROJET_TECHNOLOGIE FOREIGN KEY (ProjetId) REFERENCES Projet(Id), + CONSTRAINT FK_TECHNOLOGIE_PROJET FOREIGN KEY (TechnologieId) REFERENCES Technologie(Id) ); DROP TABLE IF EXISTS CollaborateurCollaboreProjet; @@ -148,6 +148,6 @@ CREATE TABLE IF NOT EXISTS CollaborateurCollaboreProjet( ProjetId int NOT NULL, isManager boolean NOT NULL, PRIMARY KEY (CollaborateurId,ProjetId), - CONSTRAINT FK_COLLABORATEUR_COLLABORE_PROJET FOREIGN KEY (CollaborateurId) REFERENCES collaborateur(Id), - CONSTRAINT FK_PROJET_COLLABORE_COLLABORATEUR FOREIGN KEY (ProjetId) REFERENCES projet(Id) + CONSTRAINT FK_COLLABORATEUR_COLLABORE_PROJET FOREIGN KEY (CollaborateurId) REFERENCES Collaborateur(Id), + CONSTRAINT FK_PROJET_COLLABORE_COLLABORATEUR FOREIGN KEY (ProjetId) REFERENCES Projet(Id) ); From 363999950da9374dbeba6240a7121c6730c441f4 Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Thu, 18 Nov 2021 15:57:35 +0100 Subject: [PATCH 4/7] Correction Foreign Key PeriodeEssai --- .../espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql index f193947..344c6bd 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql/db/db_1_0_0.sql @@ -121,7 +121,7 @@ CREATE TABLE IF NOT EXISTS CollaborateurEffectuePeriodeEssai( PeriodeEssaiId int NOT NULL, PRIMARY KEY (CollaborateurId,PeriodeEssaiId), CONSTRAINT FK_COLLABORATEUR_PERIODE_ESSAI FOREIGN KEY (CollaborateurId) REFERENCES Collaborateur(Id), - CONSTRAINT FK_PERIODE_ESSAI_COLLABORATEUR FOREIGN KEY (PeriodeEssaiId) REFERENCES BusinessUnit(Id) + CONSTRAINT FK_PERIODE_ESSAI_COLLABORATEUR FOREIGN KEY (PeriodeEssaiId) REFERENCES PeriodeEssai(Id) ); DROP TABLE IF EXISTS SiteDeveloppeProjet; From c07ec70fcdc9e2e176011f90329148a829b3f308 Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Thu, 18 Nov 2021 16:11:01 +0100 Subject: [PATCH 5/7] Corrections de la PR --- .gitignore | 390 ++++++++++++++++++ .../AgenceDto.cs | 15 - .../AgenceSqlDto.cs | 22 + .../BusinessUnitDto.cs | 17 - .../BusinessUnitSqlDto.cs | 24 ++ .../CollaborateurAppartientBusinessUnitDto.cs | 20 - ...llaborateurAppartientBusinessUnitSqlDto.cs | 21 + .../CollaborateurCollaboreProjetDto.cs | 21 - .../CollaborateurCollaboreProjetSqlDto.cs | 23 ++ .../CollaborateurDto.cs | 32 -- .../CollaborateurEffectuePeriodeEssaiDto.cs | 20 - ...CollaborateurEffectuePeriodeEssaiSqlDto.cs | 21 + .../CollaborateurEstFonctionDto.cs | 20 - .../CollaborateurEstFonctionSqlDto.cs | 21 + .../CollaborateurSqlDto.cs | 44 ++ .../EnumGenre.cs | 2 +- .../EnumIssue.cs | 2 +- .../EnumStatut.cs | 2 +- .../FonctionDto.cs | 15 - .../FonctionSqlDto.cs | 21 + .../PeriodeEssaiDto.cs | 19 - .../PeriodeEssaiSqlDto.cs | 29 ++ .../ProjetDto.cs | 19 - .../ProjetSqlDto.cs | 29 ++ .../ProjetUtiliseTechnologieDto.cs | 20 - .../ProjetUtiliseTechnologieSqlDto.cs | 21 + .../ReferencementDto.cs | 23 -- .../ReferencementSqlDto.cs | 27 ++ .../SiteDeveloppeProjetDto.cs | 20 - .../SiteDeveloppeProjetSqlDto.cs | 21 + .../SiteDto.cs | 17 - .../SiteSqlDto.cs | 25 ++ .../TechnologieDto.cs | 15 - .../TechnologieSqlDto.cs | 19 + 34 files changed, 761 insertions(+), 296 deletions(-) delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionSqlDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteSqlDto.cs delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs create mode 100644 Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieSqlDto.cs diff --git a/.gitignore b/.gitignore index 1998960..67ad52c 100644 --- a/.gitignore +++ b/.gitignore @@ -399,3 +399,393 @@ FodyWeavers.xsd # Local History for Visual Studio Code .history/ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Nuget personal access tokens and Credentials +# nuget.config + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +.idea/ +*.sln.iml + +.Development diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs deleted file mode 100644 index b556e9d..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceDto.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class AgenceDto - { - private Guid Id { get; set; } - private string Name { get; set; } - - [ExcludeFromCodeCoverage] - private AgenceDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceSqlDto.cs new file mode 100644 index 0000000..7914345 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/AgenceSqlDto.cs @@ -0,0 +1,22 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class AgenceSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + + [ExcludeFromCodeCoverage] + + private AgenceSqlDto() + { + } + + public AgenceSqlDto(Guid id, string name) + { + Id = id; + Name = name; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs deleted file mode 100644 index 0b943f7..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitDto.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class BusinessUnitDto - { - private Guid Id { get; set; } - private string Name { get; set; } - private Guid AgenceId { get; set; } - - - [ExcludeFromCodeCoverage] - private BusinessUnitDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitSqlDto.cs new file mode 100644 index 0000000..04b205b --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/BusinessUnitSqlDto.cs @@ -0,0 +1,24 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class BusinessUnitSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public Guid AgenceId { get; set; } + + + [ExcludeFromCodeCoverage] + private BusinessUnitSqlDto() + { + } + + public BusinessUnitSqlDto(Guid id, string name, Guid agenceId) + { + Id = id; + Name = name; + AgenceId = agenceId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs deleted file mode 100644 index 6e563fd..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos.Associations -{ - public class CollaborateurAppartientBusinessUnitDto - { - private Guid CollaborateurId { get; set; } - private Guid BusinessUnitId { get; set; } - - [ExcludeFromCodeCoverage] - private CollaborateurAppartientBusinessUnitDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitSqlDto.cs new file mode 100644 index 0000000..c9858c5 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurAppartientBusinessUnitSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurAppartientBusinessUnitSqlDto + { + public Guid CollaborateurId { get; set; } + public Guid BusinessUnitId { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurAppartientBusinessUnitSqlDto() + { + } + + public CollaborateurAppartientBusinessUnitSqlDto(Guid collaborateurId, Guid businessUnitId) + { + CollaborateurId = collaborateurId; + BusinessUnitId = businessUnitId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs deleted file mode 100644 index 2ea983a..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetDto.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class CollaborateurCollaboreProjetDto - { - private Guid CollaborateurId { get; set; } - private Guid ProjetId { get; set; } - private bool IsManager { get; set; } - - [ExcludeFromCodeCoverage] - private CollaborateurCollaboreProjetDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetSqlDto.cs new file mode 100644 index 0000000..ad03f99 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurCollaboreProjetSqlDto.cs @@ -0,0 +1,23 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class CollaborateurCollaboreProjetSqlDto + { + public Guid CollaborateurId { get; set; } + public Guid ProjetId { get; set; } + public bool IsManager { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurCollaboreProjetSqlDto() + { + } + + public CollaborateurCollaboreProjetSqlDto(Guid collaborateurId, Guid projetId, bool isManager) + { + CollaborateurId = collaborateurId; + ProjetId = projetId; + IsManager = isManager; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs deleted file mode 100644 index bb09b78..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurDto.cs +++ /dev/null @@ -1,32 +0,0 @@ -using espacecollab.backend.infrastructure.sql.dtos.Enums; -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class CollaborateurDto - { - private Guid Id { get; set; } - private string Name { get; set; } - private string FirstName { get; set; } - private DateTime BirthDate { get; set; } - private EnumGenre Gender { get; set; } - private EnumStatut Status { get; set; } - private int ChildrenNumber { get; set; } - private string Address { get; set; } - private string Telephone { get; set; } - private string PersonalMail { get; set; } - private string ApsideMail { get; set; } - private DateTime ResignationDate { get; set; } - private Guid ReferrerId { get; set; } - - [ExcludeFromCodeCoverage] - private CollaborateurDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs deleted file mode 100644 index 8015c76..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos.Associations -{ - public class CollaborateurEffectuePeriodeEssaiDto - { - private Guid CollaborateurId { get; set; } - private Guid PeriodeEssaiId { get; set;} - - [ExcludeFromCodeCoverage] - private CollaborateurEffectuePeriodeEssaiDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiSqlDto.cs new file mode 100644 index 0000000..bfe853b --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEffectuePeriodeEssaiSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurEffectuePeriodeEssaiSqlDto + { + public Guid CollaborateurId { get; set; } + public Guid PeriodeEssaiId { get; set;} + + [ExcludeFromCodeCoverage] + private CollaborateurEffectuePeriodeEssaiSqlDto() + { + } + + public CollaborateurEffectuePeriodeEssaiSqlDto(Guid collaborateurId, Guid periodeEssaiId) + { + CollaborateurId = collaborateurId; + PeriodeEssaiId = periodeEssaiId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs deleted file mode 100644 index 2d58d06..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos.Associations -{ - public class CollaborateurEstFonctionDto - { - private Guid CollaborateurId { get; set; } - private Guid FonctionId { get; set;} - - [ExcludeFromCodeCoverage] - private CollaborateurEstFonctionDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionSqlDto.cs new file mode 100644 index 0000000..be2ecde --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurEstFonctionSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos.Associations +{ + public class CollaborateurEstFonctionSqlDto + { + public Guid CollaborateurId { get; set; } + public Guid FonctionId { get; set;} + + [ExcludeFromCodeCoverage] + private CollaborateurEstFonctionSqlDto() + { + } + + public CollaborateurEstFonctionSqlDto(Guid collaborateurId, Guid fonctionId) + { + CollaborateurId = collaborateurId; + FonctionId = fonctionId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs new file mode 100644 index 0000000..b7917d2 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs @@ -0,0 +1,44 @@ +using espacecollab.backend.infrastructure.sql.dtos.Enums; +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class CollaborateurSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public string FirstName { get; set; } + public DateTime BirthDate { get; set; } + public EnumGenre Gender { get; set; } + public EnumStatut 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 Guid ReferrerId { get; set; } + + [ExcludeFromCodeCoverage] + private CollaborateurSqlDto() + { + } + + public CollaborateurSqlDto(Guid id, string name, string firstName, DateTime birthDate, EnumGenre gender, EnumStatut status, int childrenNumber, string address, string telephone, string personalMail, string apsideMail, DateTime resignationDate, Guid referrerId) + { + 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; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs index ceeb2da..83c9bef 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumGenre.cs @@ -1,6 +1,6 @@ namespace espacecollab.backend.infrastructure.sql.dtos.Enums { - enum EnumGenre + public enum EnumGenre { MASCULIN, FEMININ, diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs index 1dd3356..faf7bd1 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumIssue.cs @@ -1,6 +1,6 @@ namespace espacecollab.backend.infrastructure.sql.dtos { - enum EnumIssue + public enum EnumIssue { VALIDEE, PROLONGEE_COLLAB, diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs index 37fbd1a..2db3de5 100644 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/EnumStatut.cs @@ -1,6 +1,6 @@ namespace espacecollab.backend.infrastructure.sql.dtos.Enums { - enum EnumStatut + public enum EnumStatut { CADRE, NONCADRE, diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs deleted file mode 100644 index b1e8212..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionDto.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class FonctionDto - { - private Guid Id { get; set; } - private string Name { get; set; } - - [ExcludeFromCodeCoverage] - private FonctionDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionSqlDto.cs new file mode 100644 index 0000000..748ad5f --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/FonctionSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class FonctionSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + + [ExcludeFromCodeCoverage] + private FonctionSqlDto() + { + } + + public FonctionSqlDto(Guid id, string name) + { + Id = id; + Name = name; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs deleted file mode 100644 index 23e145a..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiDto.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class PeriodeEssaiDto - { - private Guid Id { get; set; } - private DateTime StartingDate { get; set; } - private DateTime PlannedEndingDate { get; set; } - private DateTime RealEndingDate { get; set; } - private string Comment { get; set; } - private EnumIssue Issue { get; set; } - - [ExcludeFromCodeCoverage] - private PeriodeEssaiDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiSqlDto.cs new file mode 100644 index 0000000..118637a --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/PeriodeEssaiSqlDto.cs @@ -0,0 +1,29 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class PeriodeEssaiSqlDto + { + public Guid Id { get; set; } + public DateTime StartingDate { get; set; } + public DateTime PlannedEndingDate { get; set; } + public DateTime RealEndingDate { get; set; } + public string Comment { get; set; } + public EnumIssue Issue { get; set; } + + [ExcludeFromCodeCoverage] + private PeriodeEssaiSqlDto() + { + } + + public PeriodeEssaiSqlDto(Guid id, DateTime startingDate, DateTime plannedEndingDate, DateTime realEndingDate, string comment, EnumIssue issue) + { + Id = id; + StartingDate = startingDate; + PlannedEndingDate = plannedEndingDate; + RealEndingDate = realEndingDate; + Comment = comment; + Issue = issue; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs deleted file mode 100644 index 6dc6f9d..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetDto.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class ProjetDto - { - private Guid Id { get; set; } - private string Name { get; set; } - private string Client { get; set; } - private string Description { get; set; } - private DateTime StartingDate { get; set; } - private DateTime EndingDate { get; set; } - - [ExcludeFromCodeCoverage] - private ProjetDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetSqlDto.cs new file mode 100644 index 0000000..11080af --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetSqlDto.cs @@ -0,0 +1,29 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ProjetSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public string Client { get; set; } + public string Description { get; set; } + public DateTime StartingDate { get; set; } + public DateTime EndingDate { get; set; } + + [ExcludeFromCodeCoverage] + private ProjetSqlDto() + { + } + + public ProjetSqlDto(Guid id, string name, string client, string description, DateTime startingDate, DateTime endingDate) + { + Id = id; + Name = name; + Client = client; + Description = description; + StartingDate = startingDate; + EndingDate = endingDate; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs deleted file mode 100644 index 4bd4f0b..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class ProjetUtiliseTechnologieDto - { - private Guid ProjetId { get; set; } - private Guid TechnologieId { get; set; } - - [ExcludeFromCodeCoverage] - private ProjetUtiliseTechnologieDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieSqlDto.cs new file mode 100644 index 0000000..e8bd1d6 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ProjetUtiliseTechnologieSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ProjetUtiliseTechnologieSqlDto + { + public Guid ProjetId { get; set; } + public Guid TechnologieId { get; set; } + + [ExcludeFromCodeCoverage] + private ProjetUtiliseTechnologieSqlDto() + { + } + + public ProjetUtiliseTechnologieSqlDto(Guid projetId, Guid technologieId) + { + ProjetId = projetId; + TechnologieId = technologieId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs deleted file mode 100644 index ed4a3dd..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementDto.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class ReferencementDto - { - private Guid Id { get; set; } - private DateTime StartingDate { get; set; } - private DateTime EndingDate { get; set; } - private Guid ReferredId { get; set; } - private Guid ReferrerId { get; set; } - - [ExcludeFromCodeCoverage] - private ReferencementDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementSqlDto.cs new file mode 100644 index 0000000..06e3253 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/ReferencementSqlDto.cs @@ -0,0 +1,27 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class ReferencementSqlDto + { + public Guid Id { get; set; } + public DateTime StartingDate { get; set; } + public DateTime EndingDate { get; set; } + public Guid ReferredId { get; set; } + public Guid ReferrerId { get; set; } + + [ExcludeFromCodeCoverage] + private ReferencementSqlDto() + { + } + + public ReferencementSqlDto(Guid id, DateTime startingDate, DateTime endingDate, Guid referredId, Guid referrerId) + { + Id = id; + StartingDate = startingDate; + EndingDate = endingDate; + ReferredId = referredId; + ReferrerId = referrerId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs deleted file mode 100644 index 6d6daf3..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetDto.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class SiteDeveloppeProjetDto - { - private Guid SiteId { get; set; } - private Guid ProjetId { get; set; } - - [ExcludeFromCodeCoverage] - private SiteDeveloppeProjetDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetSqlDto.cs new file mode 100644 index 0000000..4d03c62 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDeveloppeProjetSqlDto.cs @@ -0,0 +1,21 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class SiteDeveloppeProjetSqlDto + { + public Guid SiteId { get; set; } + public Guid ProjetId { get; set; } + + [ExcludeFromCodeCoverage] + private SiteDeveloppeProjetSqlDto() + { + } + + public SiteDeveloppeProjetSqlDto(Guid siteId, Guid projetId) + { + SiteId = siteId; + ProjetId = projetId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs deleted file mode 100644 index 5b40c41..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteDto.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class SiteDto - { - private Guid Id { get; set; } - private string Name { get; set; } - private string Address { get; set; } - private Guid BusinessUnitId { get; set; } - - [ExcludeFromCodeCoverage] - private SiteDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteSqlDto.cs new file mode 100644 index 0000000..2962b45 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/SiteSqlDto.cs @@ -0,0 +1,25 @@ +using System.Diagnostics.CodeAnalysis; + +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class SiteSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public string Address { get; set; } + public Guid BusinessUnitId { get; set; } + + [ExcludeFromCodeCoverage] + private SiteSqlDto() + { + } + + public SiteSqlDto(Guid id, string name, string address, Guid businessUnitId) + { + Id = id; + Name = name; + Address = address; + BusinessUnitId = businessUnitId; + } + } +} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs deleted file mode 100644 index 4c43c83..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieDto.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace espacecollab.backend.infrastructure.sql.dtos -{ - public class TechnologieDto - { - private Guid Id { get; set; } - private string Name { get; set; } - - [ExcludeFromCodeCoverage] - private TechnologieDto() - { - } - } -} diff --git a/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieSqlDto.cs b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieSqlDto.cs new file mode 100644 index 0000000..73f5028 --- /dev/null +++ b/Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/TechnologieSqlDto.cs @@ -0,0 +1,19 @@ +namespace espacecollab.backend.infrastructure.sql.dtos +{ + public class TechnologieSqlDto + { + public Guid Id { get; set; } + public string Name { get; set; } + + [ExcludeFromCodeCoverage] + private TechnologieSqlDto() + { + } + + public TechnologieSqlDto(Guid id, string name) + { + Id = id; + Name = name; + } + } +} From b363f3184b1b50c345821a469e58ca79df380fcd Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Thu, 18 Nov 2021 16:12:58 +0100 Subject: [PATCH 6/7] modififcation gitignore --- .gitignore | 403 +---------------------------------------------------- 1 file changed, 1 insertion(+), 402 deletions(-) diff --git a/.gitignore b/.gitignore index 67ad52c..ade385a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,404 +1,3 @@ -# ---> VisualStudio -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Ww][Ii][Nn]32/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# ASP.NET Scaffolding -ScaffoldingReadMe.txt - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.tlog -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*.json -coverage*.xml -coverage*.info - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Nuget personal access tokens and Credentials -nuget.config - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ - -# Fody - auto-generated XML schema -FodyWeavers.xsd - -# VS Code files for those working on multiple tools -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -*.code-workspace - -# Local History for Visual Studio Code -.history/ - -# Windows Installer files from build outputs -*.cab -*.msi -*.msix -*.msm -*.msp - -# JetBrains Rider -.idea/ -*.sln.iml - -# ---> VisualStudioCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -*.code-workspace - -# Local History for Visual Studio Code -.history/ - ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. ## @@ -788,4 +387,4 @@ FodyWeavers.xsd .idea/ *.sln.iml -.Development +*.Development.json \ No newline at end of file From 35cdc15f322b365a13ed1b5d8c003ba11d3ab6f3 Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Thu, 18 Nov 2021 16:19:16 +0100 Subject: [PATCH 7/7] correction gitignore --- .../espacecollab.backend.api/appsettings.Development.json | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.Development.json diff --git a/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.Development.json b/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.Development.json deleted file mode 100644 index 0c208ae..0000000 --- a/Collaborateur_Epa_Back/espacecollab.backend.api/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -}