65 lines
1.8 KiB
C#
65 lines
1.8 KiB
C#
|
using Microsoft.EntityFrameworkCore;
|
|||
|
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;
|
|||
|
using VOL.Entity.Enum;
|
|||
|
using VOL.Entity.SystemModels;
|
|||
|
|
|||
|
namespace VOL.Entity.DomainModels
|
|||
|
{
|
|||
|
[Table("S_Device")]
|
|||
|
[Entity(TableCnName = "设备表", TableName = "S_Device")]
|
|||
|
public class S_Device : BaseEntity
|
|||
|
{
|
|||
|
[Key]
|
|||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|||
|
[Display(Description = "主键Id")]
|
|||
|
[Comment("Id")]
|
|||
|
public int Id { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// AI设备的唯一编码
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "AI设备的唯一编码")]
|
|||
|
[Comment("AI设备的唯一编码")]
|
|||
|
[Column(TypeName = "nvarchar(100)")]
|
|||
|
public string Code { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// AI设备名称
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "AI设备名称")]
|
|||
|
[Comment("AI设备名称")]
|
|||
|
[Column(TypeName = "nvarchar(200)")]
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///设备类型
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "设备类型")]
|
|||
|
[Comment("设备类型")]
|
|||
|
[Column(TypeName = "int")]
|
|||
|
public int DeviceType { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///学校编号
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "学校编号")]
|
|||
|
[Comment("学校编号")]
|
|||
|
[Column(TypeName = "nvarchar(100)")]
|
|||
|
public string SchoolCode { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///学生学号
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "学生学号")]
|
|||
|
[Comment("学生学号")]
|
|||
|
[Column(TypeName = "nvarchar(100)")]
|
|||
|
public string StudentNo { get; set; }
|
|||
|
}
|
|||
|
}
|