This commit includes a significant refactoring of the data model, renaming `ProfileObject` to `PObject` and `ProfileControlsTF` to `PControlsTF`. Key changes: - Updated `IProfileObjRepository` to reflect new entity names. - Added `TFControls` property to `ObjectDto`. - Adjusted `MappingProfile` for new entity mappings. - Replaced `ProfileControlsTF` and `ProfileObjState` with `PControlsTF` and `PObjectState`. - Updated `WFDBContext` with new DbSet properties for the renamed entities. - Modified `ProfileObjRepository` to align with the new data structure. These changes enhance clarity and maintainability across the application.
94 lines
4.2 KiB
C#
94 lines
4.2 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace WorkFlow.Domain.Entities;
|
|
|
|
[Table("TBMWF_PROF_CONTROLS_TF", Schema = "dbo")]
|
|
public class PControlsTF
|
|
{
|
|
[Key]
|
|
[Column("GUID", TypeName = "bigint")]
|
|
public long Id { get; set; }
|
|
|
|
[Required]
|
|
[Column("OBJ_STATE_ID", TypeName = "bigint")]
|
|
public long ObjStateId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Although this field is marked as <c>nullable</c> in the database schema to allow
|
|
/// for greater flexibility during database-level operations or migrations, it is
|
|
/// treated as <c>required</c> and <c>not null</c> within the application logic.
|
|
/// Validation should be enforced at the application level to ensure a value is provided.
|
|
/// </summary>
|
|
[Column("DIALOG_NO", TypeName = "tinyint")]
|
|
public byte? DialogNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// Although this field is marked as <c>nullable</c> in the database schema to allow
|
|
/// for greater flexibility during database-level operations or migrations, it is
|
|
/// treated as <c>required</c> and <c>not null</c> within the application logic.
|
|
/// Validation should be enforced at the application level to ensure a value is provided.
|
|
/// </summary>
|
|
[Column("ATTR_NAME", TypeName = "nvarchar(100)")]
|
|
public string? AttrName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Although this field is marked as <c>nullable</c> in the database schema to allow
|
|
/// for greater flexibility during database-level operations or migrations, it is
|
|
/// treated as <c>required</c> and <c>not null</c> within the application logic.
|
|
/// Validation should be enforced at the application level to ensure a value is provided.
|
|
/// </summary>
|
|
[Column("CTRL_TYPE", TypeName = "nvarchar(10)")]
|
|
public string? CtrlType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Although this field is marked as <c>nullable</c> in the database schema to allow
|
|
/// for greater flexibility during database-level operations or migrations, it is
|
|
/// treated as <c>required</c> and <c>not null</c> within the application logic.
|
|
/// Validation should be enforced at the application level to ensure a value is provided.
|
|
/// </summary>
|
|
[Column("CAPTION", TypeName = "nvarchar(100)")]
|
|
public string? Caption { get; set; }
|
|
|
|
/// <summary>
|
|
/// Although this field is marked as <c>nullable</c> in the database schema to allow
|
|
/// for greater flexibility during database-level operations or migrations, it is
|
|
/// treated as <c>required</c> and <c>not null</c> within the application logic.
|
|
/// Validation should be enforced at the application level to ensure a value is provided.
|
|
/// </summary>
|
|
[Column("TEXT", TypeName = "nvarchar(500)")]
|
|
public string? Text { get; set; }
|
|
|
|
[Column("ICON", TypeName = "nvarchar(100)")]
|
|
public string? Icon { get; set; }
|
|
|
|
/// <summary>
|
|
/// Although this field is marked as <c>nullable</c> in the database schema to allow
|
|
/// for greater flexibility during database-level operations or migrations, it is
|
|
/// treated as <c>required</c> and <c>not null</c> within the application logic.
|
|
/// Validation should be enforced at the application level to ensure a value is provided.
|
|
/// </summary>
|
|
[Column("MANDATORY", TypeName = "bit")]
|
|
public bool? Mandatory { get; set; }
|
|
|
|
[Column("CHOICE_LIST", TypeName = "nvarchar(max)")]
|
|
public string? ChoiceList { get; set; }
|
|
|
|
/// <summary>
|
|
/// Although this field is marked as <c>nullable</c> in the database schema to allow
|
|
/// for greater flexibility during database-level operations or migrations, it is
|
|
/// treated as <c>required</c> and <c>not null</c> within the application logic.
|
|
/// Validation should be enforced at the application level to ensure a value is provided.
|
|
/// </summary>
|
|
[Column("READ_ONLY", TypeName = "bit")]
|
|
public bool? ReadOnly { get; set; }
|
|
|
|
[Column("SEQU", TypeName = "tinyint")]
|
|
public byte? Sequ { get; set; }
|
|
|
|
[Column("ADDED_WHO", TypeName = "nvarchar(100)")]
|
|
public required string AddedWho { get; set; }
|
|
|
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
|
public DateTime AddedWhen { get; set; }
|
|
} |