refactor(UserRep): ValidFrom- und ValidTo-Attribute in Entitäten und DTOs nullbar gemacht
This commit is contained in:
parent
371967380b
commit
c060cd9083
@ -65,7 +65,6 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="ClientApp\" />
|
<Folder Include="ClientApp\" />
|
||||||
<Folder Include="Models\" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace DigitalData.UserManager.Application.DTOs.UserRep
|
|||||||
int? RepGroupId,
|
int? RepGroupId,
|
||||||
int? GroupId,
|
int? GroupId,
|
||||||
int? RepUserId,
|
int? RepUserId,
|
||||||
DateTime ValidFrom,
|
DateTime? ValidFrom,
|
||||||
DateTime ValidTo
|
DateTime? ValidTo
|
||||||
) : BaseCreateDto();
|
) : BaseCreateDto();
|
||||||
}
|
}
|
||||||
@ -10,8 +10,8 @@ namespace DigitalData.UserManager.Application.DTOs.UserRep
|
|||||||
int? GroupId,
|
int? GroupId,
|
||||||
int? RepUserId,
|
int? RepUserId,
|
||||||
int? RepGroupId,
|
int? RepGroupId,
|
||||||
DateTime ValidFrom,
|
DateTime? ValidFrom,
|
||||||
DateTime ValidTo,
|
DateTime? ValidTo,
|
||||||
string AddedWho,
|
string AddedWho,
|
||||||
string? ChangedWho,
|
string? ChangedWho,
|
||||||
UserReadDto? User,
|
UserReadDto? User,
|
||||||
|
|||||||
@ -20,11 +20,11 @@ namespace DigitalData.UserManager.Domain.Entities
|
|||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[Column("VALID_FROM")]
|
[Column("VALID_FROM")]
|
||||||
public required DateTime ValidFrom { get; set; }
|
public required DateTime? ValidFrom { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[Column("VALID_TO")]
|
[Column("VALID_TO")]
|
||||||
public required DateTime ValidTo { get; set; }
|
public required DateTime? ValidTo { get; set; }
|
||||||
|
|
||||||
[ForeignKey("UserId")]
|
[ForeignKey("UserId")]
|
||||||
public virtual User? User { get; set; }
|
public virtual User? User { get; set; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user