Remove obsolete navigation properties from RecActionView
Removed Root, Endpoint, EndpointAuth, and SqlConnection navigation properties from RecActionView, along with their [ForeignKey] and [Obsolete] attributes. This streamlines the data model by retaining only foreign key IDs and related string properties, reducing direct entity navigation in favor of using related procedures or views.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using ReC.Domain.Constants;
|
||||
using ReC.Domain.Entities;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ReC.Domain.Views;
|
||||
@@ -19,10 +18,6 @@ public class RecActionView
|
||||
|
||||
public required long Id { get; set; }
|
||||
|
||||
[ForeignKey("Id")]
|
||||
[Obsolete("Use the related procedure or view.")]
|
||||
public RecAction? Root { get; set; }
|
||||
|
||||
public long? ProfileId { get; set; }
|
||||
|
||||
[ForeignKey("ProfileId")]
|
||||
@@ -36,18 +31,10 @@ public class RecActionView
|
||||
|
||||
public long? EndpointId { get; set; }
|
||||
|
||||
[ForeignKey("EndpointId")]
|
||||
[Obsolete("Use the related procedure or view.")]
|
||||
public Endpoint? Endpoint { get; set; }
|
||||
|
||||
public string? EndpointUri { get; set; }
|
||||
|
||||
public long? EndpointAuthId { get; set; }
|
||||
|
||||
[ForeignKey("EndpointAuthId")]
|
||||
[Obsolete("Use the related procedure or view.")]
|
||||
public EndpointAuth? EndpointAuth { get; set; }
|
||||
|
||||
public EndpointAuthType? EndpointAuthType { get; set; }
|
||||
|
||||
public string? EndpointAuthTypeName { get; set; }
|
||||
@@ -74,10 +61,6 @@ public class RecActionView
|
||||
|
||||
public short? SqlConnectionId { get; set; }
|
||||
|
||||
[ForeignKey("SqlConnectionId")]
|
||||
[Obsolete("Use the related procedure or view.")]
|
||||
public Connection? SqlConnection { get; set; }
|
||||
|
||||
public string? SqlConnectionServer { get; set; }
|
||||
|
||||
public string? SqlConnectionDb { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user