BDU/ATS_DBContext/Models/DataModel.cs

34 lines
823 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ATS_DBContext.Models
{
public class DataModel
{
[Key]
public Guid ID { get; set; } = Guid.NewGuid();
public Guid ProgramID { get; set; }
public Guid TestRoundID { get; set; }
public Guid ParameterID { get; set; }
public string Value { get; set; } = "";
public string? LowerLimit { get; set; }
public string? UpperLimit { get; set; }
public bool Result { get; set; } = false;
[Column(TypeName = "timestamp without time zone")]
public DateTime InsertTime { get; set; } = DateTime.Now;
}
}