Enhance User entity with required properties and updates
- Added conditional compilation for .NET Framework. - Made `GeneralViewer`, `WanEnvironment`, and `DeletedWho` properties required with appropriate attributes. - Renamed `UseridFkIntEcm` to `UserIdFkIntEcm` and marked it as required. - Changed `DeletedWhen` to a non-nullable `DateTime`. - Removed previously ignored columns, activating them in the class definition.
This commit is contained in:
parent
23c7b7a293
commit
06ad3516f1
@ -1,6 +1,9 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
#if NETFRAMEWORK
|
||||
using System;
|
||||
#endif
|
||||
|
||||
namespace DigitalData.UserManager.Domain.Entities
|
||||
{
|
||||
@ -84,27 +87,33 @@ namespace DigitalData.UserManager.Domain.Entities
|
||||
[Column("ACTIVE")]
|
||||
public bool Active { get; set; }
|
||||
|
||||
#region IGNORED COLUMNS
|
||||
//[Required]
|
||||
//[Column("GENERAL_VIEWER")]
|
||||
//[StringLength(30)]
|
||||
//[DefaultValue("NONE")]
|
||||
//public string GeneralViewer { get; set; }
|
||||
[Required]
|
||||
[Column("GENERAL_VIEWER")]
|
||||
[StringLength(30)]
|
||||
[DefaultValue("NONE")]
|
||||
public
|
||||
#if NET7_0_OR_GREATER
|
||||
required
|
||||
#endif
|
||||
string GeneralViewer { get; set; }
|
||||
|
||||
//[Required]
|
||||
//[Column("WAN_ENVIRONMENT")]
|
||||
//public bool WanEnvironment { get; set; }
|
||||
[Required]
|
||||
[Column("WAN_ENVIRONMENT")]
|
||||
public bool WanEnvironment { get; set; }
|
||||
|
||||
//[Required]
|
||||
//[Column("USERID_FK_INT_ECM")]
|
||||
//public int UseridFkIntEcm { get; set; }
|
||||
[Required]
|
||||
[Column("USERID_FK_INT_ECM")]
|
||||
public int UserIdFkIntEcm { get; set; }
|
||||
|
||||
//[Column("DELETED_WHEN")]
|
||||
//public DateTime? DeletedWhen { get; set; }
|
||||
[Column("DELETED_WHEN")]
|
||||
public DateTime DeletedWhen { get; set; }
|
||||
|
||||
//[Column("DELETED_WHO")]
|
||||
//[StringLength(50)]
|
||||
//public string? DeletedWho { get; set; }
|
||||
#endregion
|
||||
[Column("DELETED_WHO")]
|
||||
[StringLength(50)]
|
||||
public
|
||||
#if NET7_0_OR_GREATER
|
||||
required
|
||||
#endif
|
||||
string DeletedWho { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user