From 5a4b8427be9b8a9bfdc782ce8b7b8a3cae5201bb Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 15 Dec 2025 16:56:37 +0100 Subject: [PATCH] Rename RecResultView entity to ResultView throughout codebase Replaced RecResultView with ResultView, updating all references in DbContext, entity mapping, and AutoMapper profiles. Added the new ResultView class and removed the old RecResultView class. No changes to properties or structure. --- src/ReC.Application/Common/Dto/DtoMappingProfile.cs | 2 +- src/ReC.Domain/Entities/{RecResultView.cs => ResultView.cs} | 2 +- src/ReC.Infrastructure/RecDbContext.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/ReC.Domain/Entities/{RecResultView.cs => ResultView.cs} (95%) diff --git a/src/ReC.Application/Common/Dto/DtoMappingProfile.cs b/src/ReC.Application/Common/Dto/DtoMappingProfile.cs index ff4cc52..d132ee6 100644 --- a/src/ReC.Application/Common/Dto/DtoMappingProfile.cs +++ b/src/ReC.Application/Common/Dto/DtoMappingProfile.cs @@ -17,7 +17,7 @@ public class DtoMappingProfile : AutoMapper.Profile CreateMap(); CreateMap(); - CreateMap(); + CreateMap(); CreateMap(); } } diff --git a/src/ReC.Domain/Entities/RecResultView.cs b/src/ReC.Domain/Entities/ResultView.cs similarity index 95% rename from src/ReC.Domain/Entities/RecResultView.cs rename to src/ReC.Domain/Entities/ResultView.cs index 0bb1047..bd310e2 100644 --- a/src/ReC.Domain/Entities/RecResultView.cs +++ b/src/ReC.Domain/Entities/ResultView.cs @@ -1,6 +1,6 @@ namespace ReC.Domain.Entities; -public class RecResultView +public class ResultView { public long Id { get; set; } diff --git a/src/ReC.Infrastructure/RecDbContext.cs b/src/ReC.Infrastructure/RecDbContext.cs index 2a161fe..3f3515e 100644 --- a/src/ReC.Infrastructure/RecDbContext.cs +++ b/src/ReC.Infrastructure/RecDbContext.cs @@ -12,7 +12,7 @@ public class RecDbContext(DbContextOptions options) : DbContext(op public DbSet ProfileViews { get; set; } - public DbSet RecResultViews { get; set; } + public DbSet RecResultViews { get; set; } public DbSet OutRes { get; set; } @@ -263,7 +263,7 @@ public class RecDbContext(DbContextOptions options) : DbContext(op b.Property(e => e.ErrorActionName).HasColumnName("ERROR_ACTION"); }); - modelBuilder.Entity(b => + modelBuilder.Entity(b => { b.ToView("VWREC_RESULT", "dbo"); b.HasKey(e => e.Id);