Remove EF Core data annotations from EndpointParam class
Refactored EndpointParam by removing all Entity Framework Core data annotations and related using directives. The class now contains only plain C# properties, with database mapping responsibilities likely moved to Fluent API or another ORM configuration approach.
This commit is contained in:
@@ -1,47 +1,31 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
namespace ReC.Domain.Entities;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
|
|
||||||
namespace ReC.Domain.Entities;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents the TBREC_CFG_ENDPOINT_PARAMS table.
|
/// Represents the TBREC_CFG_ENDPOINT_PARAMS table.
|
||||||
/// 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>
|
||||||
[Table("TBREC_CFG_ENDPOINT_PARAMS", Schema = "dbo")]
|
|
||||||
public class EndpointParam
|
public class EndpointParam
|
||||||
{
|
{
|
||||||
[Key]
|
|
||||||
[Column("GUID")]
|
|
||||||
public long? Id { get; set; }
|
public long? Id { get; set; }
|
||||||
|
|
||||||
[Column("ACTIVE")]
|
|
||||||
public bool? Active { get; set; }
|
public bool? Active { get; set; }
|
||||||
|
|
||||||
[Column("DESCRIPTION")]
|
|
||||||
public string? Description { get; set; }
|
public string? Description { get; set; }
|
||||||
|
|
||||||
[Column("GROUP_ID")]
|
|
||||||
public short? GroupId { get; set; }
|
public short? GroupId { get; set; }
|
||||||
|
|
||||||
[Column("SEQUENCE")]
|
|
||||||
public byte? Sequence { get; set; }
|
public byte? Sequence { get; set; }
|
||||||
|
|
||||||
[Column("KEY")]
|
|
||||||
public string? Key { get; set; }
|
public string? Key { get; set; }
|
||||||
|
|
||||||
[Column("VALUE")]
|
|
||||||
public string? Value { get; set; }
|
public string? Value { get; set; }
|
||||||
|
|
||||||
[Column("ADDED_WHO")]
|
|
||||||
public string? AddedWho { get; set; }
|
public string? AddedWho { get; set; }
|
||||||
|
|
||||||
[Column("ADDED_WHEN")]
|
|
||||||
public DateTime? AddedWhen { get; set; }
|
public DateTime? AddedWhen { get; set; }
|
||||||
|
|
||||||
[Column("CHANGED_WHO")]
|
|
||||||
public string? ChangedWho { get; set; }
|
public string? ChangedWho { get; set; }
|
||||||
|
|
||||||
[Column("CHANGED_WHEN")]
|
|
||||||
public DateTime? ChangedWhen { get; set; }
|
public DateTime? ChangedWhen { get; set; }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user