TekH b936677c16 Update packages and simplify entity definitions
- Updated package references to newer versions for `DigitalData.Auth.Client`, `DigitalData.Core.API`, `DigitalData.Core.Abstractions`, `DigitalData.Core.Application`, and `DigitalData.EmailProfilerDispatcher.Abstraction`.
- Changed `UserManager.Domain` package version from `3.0.2` to `3.1.0` and updated assembly and file versions.
- Removed `IUnique<int>` interface implementation from `BaseEntity`, `ClientUser`, `Module`, and `ModuleOfUser`.
- Added data annotations to the `User` class for various properties that were previously commented out.
- Updated `Microsoft.EntityFrameworkCore` package references in the `Infrastructure` project for `net7.0` and `net9.0`.
- Modified solution configuration to change a project's build configuration from Debug to Release.
2025-06-25 14:46:39 +02:00

90 lines
2.3 KiB
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DigitalData.UserManager.Domain.Entities
{
[Table("TBDD_MODULES", Schema = "dbo")]
public class Module
{
[Column("GUID")]
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[StringLength(50)]
public string? Name { get; set; }
[StringLength(20)]
[Column("SHORT_NAME")]
public string? ShortName { get; set; }
#region IGNORED COLUMNS
//[Required]
//[StringLength(2000)]
//public string License { get; set; }
//[Required]
//[StringLength(20)]
//public string ProductVersion { get; set; }
//[Required]
//[StringLength(20)]
//public string DbVersion { get; set; }
//public bool Active { get; set; }
//[Required]
//[StringLength(1)]
//public string VersionDelimiter { get; set; }
//[Required]
//[StringLength(1)]
//public string FileDelimiter { get; set; }
//public bool Bit1 { get; set; }
//public bool Bit2 { get; set; }
//[StringLength(50)]
//public string? String1 { get; set; }
//[StringLength(50)]
//public string? String2 { get; set; }
//public byte[]? BackgroundImage { get; set; }
//[Required]
//[StringLength(200)]
//public string ProductName1 { get; set; }
//[StringLength(200)]
//public string? ProductName2 { get; set; }
//[Required]
//[StringLength(500)]
//public string VersionUpdatePath { get; set; }
//[Required]
//public int AutoLogoutUser { get; set; }
//public bool WmsessionStartstopStartup { get; set; }
//[Required]
//[StringLength(10)]
//public string MinRequiredVersion { get; set; }
//public bool LicenseValid { get; set; }
//[StringLength(50)]
//public string? AddedWho { get; set; }
//public DateTime? AddedWhen { get; set; }
//[StringLength(50)]
//public string? ChangedWho { get; set; }
//public DateTime? ChangedWhen { get; set; }
#endregion
}
}