Refactor entity properties for nullability and requirements

Removed nullable indicators from string properties in
BaseEntity.cs, ClientUser.cs, Group.cs, and User.cs.
The Username property in User.cs is now marked as
required for .NET 7 or greater, improving data integrity
and reducing null reference risks.
This commit is contained in:
2025-06-26 13:20:54 +02:00
parent bc44de63ee
commit 5d3f73bb13
4 changed files with 10 additions and 11 deletions

View File

@@ -28,8 +28,7 @@ namespace DigitalData.UserManager.Domain.Entities
#if NET7_0_OR_GREATER
?
#endif
Comment
{ get; set; }
Comment { get; set; }
[StringLength(50)]
[Column("ADDED_WHO")]
@@ -37,8 +36,7 @@ namespace DigitalData.UserManager.Domain.Entities
#if NET7_0_OR_GREATER
?
#endif
AddedWho
{ get; set; }
AddedWho { get; set; }
[Column("ADDED_WHEN", TypeName = "datetime")]
[DefaultValue("GETDATE()")]