57 lines
1.9 KiB
C#
57 lines
1.9 KiB
C#
public interface ITestRecord
|
|
{
|
|
int Id { get; set; }
|
|
int StationId { get; set; }
|
|
DateTime TestDate { get; set; }
|
|
string Tester { get; set; }
|
|
// 公共字段
|
|
}
|
|
|
|
public class BubblePointEntity : ITestRecord
|
|
{
|
|
public int Id { get; set; }
|
|
public int StationId { get; set; }
|
|
public DateTime TestDate { get; set; }
|
|
public string Tester { get; set; }
|
|
public string SampleType { get; set; }
|
|
public string SampleSpec { get; set; }
|
|
public double RoomTemperature { get; set; }
|
|
public double SoakingTime { get; set; }
|
|
public string LiquidName { get; set; }
|
|
public double LiquidSurfaceTension { get; set; }
|
|
public string LiquidManufacturer { get; set; }
|
|
public double BubblePointPressure { get; set; }
|
|
public string PressureUnit { get; set; }
|
|
public double MaxPoreSize { get; set; }
|
|
}
|
|
|
|
public class PoreDistributionEntity : ITestRecord
|
|
{
|
|
public int Id { get; set; }
|
|
public int StationId { get; set; }
|
|
public DateTime TestDate { get; set; }
|
|
public string Tester { get; set; }
|
|
public string SampleType { get; set; }
|
|
public string SampleSpec { get; set; }
|
|
public double RoomTemperature { get; set; }
|
|
public double SoakingTime { get; set; }
|
|
public string LiquidName { get; set; }
|
|
public double LiquidSurfaceTension { get; set; }
|
|
public string LiquidManufacturer { get; set; }
|
|
public string PressureUnit { get; set; }
|
|
public double BubblePointPressure { get; set; }
|
|
public double AveragePoreSize { get; set; }
|
|
// 导航属性:数据点
|
|
public List<DataPointEntity> DataPoints { get; set; }
|
|
}
|
|
|
|
public class DataPointEntity
|
|
{
|
|
public int Id { get; set; }
|
|
public int PoreDistributionId { get; set; }
|
|
public double Pressure { get; set; }
|
|
public double WetFlow { get; set; }
|
|
public double DryFlow { get; set; }
|
|
|
|
public PoreDistributionEntity PoreDistribution { get; set; }
|
|
} |