Add Profile entity class for database mapping
Introduced a new `Profile` class in the `ReC.Domain.Entities` namespace to represent the `TBREC_CFG_PROFILE` table in the `dbo` schema. - Added Entity Framework annotations to map properties to database columns. - Defined properties for fields such as `Id`, `Active`, `Type`, `ProfileName`, `Description`, and others. - Used nullable types for all properties to allow null values. - Marked `Id` as the primary key with auto-generation enabled. This change enables ORM support for managing profile-related data.
This commit is contained in:
parent
a2af50e436
commit
1960151f77
47
src/ReC.Domain/Entities/Profile.cs
Normal file
47
src/ReC.Domain/Entities/Profile.cs
Normal file
@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ReC.Domain.Entities;
|
||||
|
||||
[Table("TBREC_CFG_PROFILE", Schema = "dbo")]
|
||||
public class Profile
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Column("GUID")]
|
||||
public short? Id { get; set; }
|
||||
|
||||
[Column("ACTIVE")]
|
||||
public bool? Active { get; set; }
|
||||
|
||||
[Column("TYPE")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[Column("MANDANTOR")]
|
||||
public string? Mandantor { get; set; }
|
||||
|
||||
[Column("PROFILE_NAME")]
|
||||
public string? ProfileName { get; set; }
|
||||
|
||||
[Column("DESCRIPTION")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[Column("LOG_LEVEL")]
|
||||
public string? LogLevel { get; set; }
|
||||
|
||||
[Column("LANGUAGE")]
|
||||
public string? Language { get; set; }
|
||||
|
||||
[Column("ADDED_WHO")]
|
||||
public string? AddedWho { get; set; }
|
||||
|
||||
[Column("ADDED_WHEN")]
|
||||
public DateTime? AddedWhen { get; set; }
|
||||
|
||||
[Column("CHANGED_WHO")]
|
||||
public string? ChangedWho { get; set; }
|
||||
|
||||
[Column("CHANGED_WHEN")]
|
||||
public DateTime? ChangedWhen { get; set; }
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user