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; namespace AiSportsMicrospaceDB.Entities { /// /// 设备学校绑定 /// [Table("DeviceAssocSchool")] public class DeviceAssocSchool { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Display(Description = "主键Id")] [Comment("Id")] // ✅ 主键 public int Id { get; set; } /// ///学校编号 /// [Display(Name = "学校编号")] [Comment("学校编号")] [Column(TypeName = "nvarchar(100)")] public string SchoolCode { get; set; } /// ///设备编号 /// [Display(Name = "设备编号")] [Comment("设备编号")] [Column(TypeName = "nvarchar(100)")] public string Code { get; set; } } }