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:
@@ -20,8 +20,7 @@ namespace DigitalData.UserManager.Domain.Entities
|
||||
#if NET7_0_OR_GREATER
|
||||
?
|
||||
#endif
|
||||
AddedWho
|
||||
{ get; set; }
|
||||
AddedWho { get; set; }
|
||||
|
||||
[StringLength(50)]
|
||||
[Column("CHANGED_WHO")]
|
||||
@@ -29,8 +28,7 @@ namespace DigitalData.UserManager.Domain.Entities
|
||||
#if NET7_0_OR_GREATER
|
||||
?
|
||||
#endif
|
||||
ChangedWho
|
||||
{ get; set; }
|
||||
ChangedWho { get; set; }
|
||||
|
||||
//TODO: assign it to default value in create dto, not here!
|
||||
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||
|
||||
Reference in New Issue
Block a user