Before refactor
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WebAPI.Models
|
||||
{
|
||||
public class Record
|
||||
{
|
||||
#region Properties
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
[Required]
|
||||
public string? Code { get; set; }
|
||||
public float? Value1 { get; set; }
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WebAPI.Models
|
||||
{
|
||||
public class Record
|
||||
{
|
||||
#region Properties
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
[Required]
|
||||
public string? Code { get; set; }
|
||||
public float? Value1 { get; set; }
|
||||
public float? Value2 { get; set; }
|
||||
public float? Value3 { get; set; }
|
||||
public float? Value4 { get; set; }
|
||||
@@ -42,23 +42,23 @@ namespace WebAPI.Models
|
||||
public float? Value31 { get; set; }
|
||||
public float? Value32 { get; set; }
|
||||
//Description fields
|
||||
public string? Desc1 { get; set; }
|
||||
public string? Desc2 { get; set; }
|
||||
public string? Desc3 { get; set; }
|
||||
public string? Desc4 { get; set; }
|
||||
public string? Desc5 { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime ModifiedAt { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
#endregion
|
||||
#region Relations
|
||||
[Required]
|
||||
public Guid CreatedById { get; set; }
|
||||
public User? CreatedBy { get; set; }
|
||||
[Required]
|
||||
public Guid ModifiedById { get; set; }
|
||||
public User? ModifiedBy { get; set; }
|
||||
public Guid LayerId { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
public string? Desc1 { get; set; }
|
||||
public string? Desc2 { get; set; }
|
||||
public string? Desc3 { get; set; }
|
||||
public string? Desc4 { get; set; }
|
||||
public string? Desc5 { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime ModifiedAt { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
#endregion
|
||||
#region Relations
|
||||
[Required]
|
||||
public Guid CreatedById { get; set; }
|
||||
public User? CreatedBy { get; set; }
|
||||
[Required]
|
||||
public Guid ModifiedById { get; set; }
|
||||
public User? ModifiedBy { get; set; }
|
||||
public Guid LayerId { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user