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.
This commit is contained in:
@@ -17,7 +17,7 @@ public class DtoMappingProfile : AutoMapper.Profile
|
|||||||
CreateMap<Profile, ProfileDto>();
|
CreateMap<Profile, ProfileDto>();
|
||||||
CreateMap<RecAction, RecActionDto>();
|
CreateMap<RecAction, RecActionDto>();
|
||||||
|
|
||||||
CreateMap<RecResultView, RecResultViewDto>();
|
CreateMap<ResultView, RecResultViewDto>();
|
||||||
CreateMap<ProfileView, ProfileViewDto>();
|
CreateMap<ProfileView, ProfileViewDto>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace ReC.Domain.Entities;
|
namespace ReC.Domain.Entities;
|
||||||
|
|
||||||
public class RecResultView
|
public class ResultView
|
||||||
{
|
{
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(op
|
|||||||
|
|
||||||
public DbSet<ProfileView> ProfileViews { get; set; }
|
public DbSet<ProfileView> ProfileViews { get; set; }
|
||||||
|
|
||||||
public DbSet<RecResultView> RecResultViews { get; set; }
|
public DbSet<ResultView> RecResultViews { get; set; }
|
||||||
|
|
||||||
public DbSet<OutRes> OutRes { get; set; }
|
public DbSet<OutRes> OutRes { get; set; }
|
||||||
|
|
||||||
@@ -263,7 +263,7 @@ public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(op
|
|||||||
b.Property(e => e.ErrorActionName).HasColumnName("ERROR_ACTION");
|
b.Property(e => e.ErrorActionName).HasColumnName("ERROR_ACTION");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity<RecResultView>(b =>
|
modelBuilder.Entity<ResultView>(b =>
|
||||||
{
|
{
|
||||||
b.ToView("VWREC_RESULT", "dbo");
|
b.ToView("VWREC_RESULT", "dbo");
|
||||||
b.HasKey(e => e.Id);
|
b.HasKey(e => e.Id);
|
||||||
|
|||||||
Reference in New Issue
Block a user