Déplacement des dto et suppression d'une couche de hiérarchie inutile

pull/29/head
Clement CHIEU 1 year ago
parent 375af949e7
commit ecdd8c8f56

@ -1,6 +1,5 @@
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Model.DTO;
using Services; using Services;
namespace API.Controllers namespace API.Controllers

@ -1,9 +1,9 @@
using DbContextLib; using DbContextLib;
using Dto;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Model.Business; using Model.Business;
using Model.DTO;
using Services; using Services;
namespace API.Controllers namespace API.Controllers

@ -21,6 +21,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestConsoleAPI", "TestConso
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StubbedContextLib", "StubbedContextLib\StubbedContextLib.csproj", "{B64941C9-0550-4C47-89B6-396F6DB0486D}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StubbedContextLib", "StubbedContextLib\StubbedContextLib.csproj", "{B64941C9-0550-4C47-89B6-396F6DB0486D}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dto", "Dto\Dto.csproj", "{9682CA6B-2380-463B-B6BC-17C3B9E992C8}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -63,6 +65,10 @@ Global
{B64941C9-0550-4C47-89B6-396F6DB0486D}.Debug|Any CPU.Build.0 = Debug|Any CPU {B64941C9-0550-4C47-89B6-396F6DB0486D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B64941C9-0550-4C47-89B6-396F6DB0486D}.Release|Any CPU.ActiveCfg = Release|Any CPU {B64941C9-0550-4C47-89B6-396F6DB0486D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B64941C9-0550-4C47-89B6-396F6DB0486D}.Release|Any CPU.Build.0 = Release|Any CPU {B64941C9-0550-4C47-89B6-396F6DB0486D}.Release|Any CPU.Build.0 = Release|Any CPU
{9682CA6B-2380-463B-B6BC-17C3B9E992C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9682CA6B-2380-463B-B6BC-17C3B9E992C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9682CA6B-2380-463B-B6BC-17C3B9E992C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9682CA6B-2380-463B-B6BC-17C3B9E992C8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

@ -1,10 +1,4 @@
using System; namespace Dto
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class BlackListDTO public class BlackListDTO
{ {

@ -1,12 +1,4 @@
using Entities.SQLuedoDB; namespace Dto
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.Business
{ {
public class ContentLessonDTO public class ContentLessonDTO
{ {

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

@ -1,11 +1,4 @@
using Entities.SQLuedoDB; namespace Dto
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class InquiryDTO public class InquiryDTO
{ {

@ -1,11 +1,4 @@
using Model.Business; namespace Dto
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class InquiryTableDTO public class InquiryTableDTO
{ {

@ -1,10 +1,4 @@
using System; namespace Dto
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class LessonDTO public class LessonDTO
{ {

@ -1,10 +1,4 @@
using System; namespace Dto
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class NotepadDTO public class NotepadDTO
{ {

@ -1,10 +1,4 @@
using System; namespace Dto
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class ParagraphDTO public class ParagraphDTO
{ {

@ -1,11 +1,4 @@
using Model.Business; namespace Dto
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class SolutionDTO public class SolutionDTO
{ {

@ -1,10 +1,4 @@
using System; namespace Dto
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class SuccessDTO public class SuccessDTO
{ {

@ -1,10 +1,4 @@
using System; namespace Dto
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.DTO
{ {
public class UserDTO public class UserDTO
{ {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
using Model.Business; using Model.Business;
using Model.DTO;
namespace Model.Mappers namespace Model.Mappers
{ {

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
using Model.Business; using Model.Business;

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
using Model.Business; using Model.Business;
using Model.DTO;
namespace Model.Mappers namespace Model.Mappers
{ {

@ -1,10 +1,10 @@
using Model.Business; using Model.Business;
using Model.DTO;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
namespace Model.Mappers namespace Model.Mappers

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
using Model.Business; using Model.Business;
using Model.DTO;
namespace Model.Mappers namespace Model.Mappers
{ {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
using Model.Business; using Model.Business;
using Model.DTO;
namespace Model.Mappers namespace Model.Mappers
{ {

@ -3,9 +3,10 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
using Model.Business; using Model.Business;
using Model.DTO;
namespace Model.Mappers namespace Model.Mappers
{ {
public static class ParagraphMapper public static class ParagraphMapper

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
using Model.Business; using Model.Business;
using Model.DTO;
namespace Model.Mappers namespace Model.Mappers
{ {

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Entities.SQLuedoDB; using Entities.SQLuedoDB;
using Model.Business; using Model.Business;
using Model.DTO;
namespace Model.Mappers namespace Model.Mappers
{ {

@ -1,6 +1,6 @@
using Entities.SQLuedoDB; using Dto;
using Entities.SQLuedoDB;
using Model.Business; using Model.Business;
using Model.DTO;
namespace Model.Mappers namespace Model.Mappers
{ {

@ -20,6 +20,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Dto\Dto.csproj" />
<ProjectReference Include="..\EntityFramework\Entities.csproj" /> <ProjectReference Include="..\EntityFramework\Entities.csproj" />
</ItemGroup> </ItemGroup>

@ -1,5 +1,5 @@
using Model.Business; using Dto;
using Model.DTO; using Model.Business;
namespace Services namespace Services
{ {

@ -1,10 +1,10 @@
using DbContextLib; using DbContextLib;
using Model.DTO;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Dto;
using Model.Mappers; using Model.Mappers;
using Model.Business; using Model.Business;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;

@ -2,12 +2,12 @@
using API.Controllers; using API.Controllers;
using DbContextLib; using DbContextLib;
using Dto;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Data.Sqlite; using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;
using Model.DTO;
using Services; using Services;
var connection = new SqliteConnection("DataSource=:memory:"); var connection = new SqliteConnection("DataSource=:memory:");

Loading…
Cancel
Save