Code refactor finished

This commit is contained in:
Michał Zieliski
2024-06-18 22:02:19 +02:00
parent 7e8406dc9b
commit 763b4a8c4d
19 changed files with 1105 additions and 1228 deletions

View File

@@ -6,10 +6,10 @@ public class Record
{
#region Properties
[Key]
public Guid Id { get; set; }
public Guid Id { get; init; }
[Required]
[StringLength(50)]
public string? Code { get; set; }
public string? Code { get; init; }
public double? Value1 { get; set; }
public double? Value2 { get; set; }
public double? Value3 { get; set; }
@@ -44,15 +44,15 @@ public class Record
public double? Value32 { get; set; }
//Description fields
[StringLength(50)]
public string? Desc1 { get; set; }
public string? Desc1 { get; init; }
[StringLength(50)]
public string? Desc2 { get; set; }
public string? Desc2 { get; init; }
[StringLength(50)]
public string? Desc3 { get; set; }
public string? Desc3 { get; init; }
[StringLength(50)]
public string? Desc4 { get; set; }
public string? Desc4 { get; init; }
[StringLength(50)]
public string? Desc5 { get; set; }
public string? Desc5 { get; init; }
[StringLength(50)]
public DateTime CreatedAt { get; set; }
public DateTime ModifiedAt { get; set; }