Mark entity classes as obsolete; add table attributes
Marked Connection, Endpoint, EndpointAuth, EndpointParam, OutRes, Profile, and RecAction classes as obsolete with [Obsolete("Use Views instead.")]. Added or updated [Table] attributes to specify database tables and schemas for each class. This signals a transition to using Views instead of these entities.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace ReC.Domain.Entities;
|
namespace ReC.Domain.Entities;
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
[Table("TBDD_CONNECTION")]
|
[Table("TBDD_CONNECTION")]
|
||||||
public class Connection
|
public class Connection
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace ReC.Domain.Entities;
|
namespace ReC.Domain.Entities;
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
[Table("TBREC_CFG_ENDPOINT")]
|
[Table("TBREC_CFG_ENDPOINT")]
|
||||||
public class Endpoint
|
public class Endpoint
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||||||
|
|
||||||
namespace ReC.Domain.Entities;
|
namespace ReC.Domain.Entities;
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
[Table("TBREC_CFG_ENDPOINT_AUTH")]
|
[Table("TBREC_CFG_ENDPOINT_AUTH")]
|
||||||
public class EndpointAuth
|
public class EndpointAuth
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ namespace ReC.Domain.Entities;
|
|||||||
/// All properties are nullable to provide flexibility on the database side,
|
/// All properties are nullable to provide flexibility on the database side,
|
||||||
/// preventing breaking changes if columns are altered to be nullable in production.
|
/// preventing breaking changes if columns are altered to be nullable in production.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
[Table("TBREC_CFG_ENDPOINT_PARAMS", Schema = "dbo")]
|
[Table("TBREC_CFG_ENDPOINT_PARAMS", Schema = "dbo")]
|
||||||
public class EndpointParam
|
public class EndpointParam
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace ReC.Domain.Entities;
|
namespace ReC.Domain.Entities;
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
[Table("TBREC_OUT_RESULT", Schema = "dbo")]
|
[Table("TBREC_OUT_RESULT", Schema = "dbo")]
|
||||||
public class OutRes
|
public class OutRes
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace ReC.Domain.Entities;
|
namespace ReC.Domain.Entities;
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
[Table("TBREC_CFG_PROFILE", Schema = "dbo")]
|
[Table("TBREC_CFG_PROFILE", Schema = "dbo")]
|
||||||
public class Profile
|
public class Profile
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||||||
|
|
||||||
namespace ReC.Domain.Entities;
|
namespace ReC.Domain.Entities;
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
[Table("TBREC_CFG_ACTION")]
|
[Table("TBREC_CFG_ACTION")]
|
||||||
public class RecAction
|
public class RecAction
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user