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;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
#if NETFRAMEWORK
|
||||||
|
using System;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace DigitalData.UserManager.Domain.Entities
|
namespace DigitalData.UserManager.Domain.Entities
|
||||||
{
|
{
|
||||||
@ -84,27 +87,33 @@ namespace DigitalData.UserManager.Domain.Entities
|
|||||||
[Column("ACTIVE")]
|
[Column("ACTIVE")]
|
||||||
public bool Active { get; set; }
|
public bool Active { get; set; }
|
||||||
|
|
||||||
#region IGNORED COLUMNS
|
[Required]
|
||||||
//[Required]
|
[Column("GENERAL_VIEWER")]
|
||||||
//[Column("GENERAL_VIEWER")]
|
[StringLength(30)]
|
||||||
//[StringLength(30)]
|
[DefaultValue("NONE")]
|
||||||
//[DefaultValue("NONE")]
|
public
|
||||||
//public string GeneralViewer { get; set; }
|
#if NET7_0_OR_GREATER
|
||||||
|
required
|
||||||
|
#endif
|
||||||
|
string GeneralViewer { get; set; }
|
||||||
|
|
||||||
//[Required]
|
[Required]
|
||||||
//[Column("WAN_ENVIRONMENT")]
|
[Column("WAN_ENVIRONMENT")]
|
||||||
//public bool WanEnvironment { get; set; }
|
public bool WanEnvironment { get; set; }
|
||||||
|
|
||||||
//[Required]
|
[Required]
|
||||||
//[Column("USERID_FK_INT_ECM")]
|
[Column("USERID_FK_INT_ECM")]
|
||||||
//public int UseridFkIntEcm { get; set; }
|
public int UserIdFkIntEcm { get; set; }
|
||||||
|
|
||||||
//[Column("DELETED_WHEN")]
|
[Column("DELETED_WHEN")]
|
||||||
//public DateTime? DeletedWhen { get; set; }
|
public DateTime DeletedWhen { get; set; }
|
||||||
|
|
||||||
//[Column("DELETED_WHO")]
|
[Column("DELETED_WHO")]
|
||||||
//[StringLength(50)]
|
[StringLength(50)]
|
||||||
//public string? DeletedWho { get; set; }
|
public
|
||||||
#endregion
|
#if NET7_0_OR_GREATER
|
||||||
|
required
|
||||||
|
#endif
|
||||||
|
string DeletedWho { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user