tanglong 752e8450bc ss
2025-06-06 15:15:42 +08:00

47 lines
1.3 KiB
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Reflection.PortableExecutable;
namespace YD_XinWei.Api.Entitys
{
[Table("TestTable")]
public class TestTable
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Description = "主键Id")]
[Comment("Id")]
public int Id { get; set; }
/// <summary>
///Name
/// </summary>
[Display(Name = "Name")]
[Comment("Name")]
[Column(TypeName = "nvarchar(100)")]
public string Name { get; set; }
/// <summary>
///Json
/// </summary>
[Display(Name = "Json")]
[Comment("Json")]
[Column(TypeName = "nvarchar(100)")]
public string Json { get; set; }
}
public class JsonDeta
{
public int Id { get; set; }
public string Name { get; set; }
public string CreateTime { get; set; }
public string StartTime { get; set; }
public string EndTime { get; set; }
public double Value1 { get; set; }
public double Value2 { get; set; }
public double Value3 { get; set; }
public string Remark { get; set; }
}
}