42 lines
1.1 KiB
C#
42 lines
1.1 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;
|
|
|
|
namespace AiSportsMicrospaceDB.Entities
|
|
{
|
|
/// <summary>
|
|
/// 设备学校绑定
|
|
/// </summary>
|
|
[Table("DeviceAssocSchool")]
|
|
public class DeviceAssocSchool
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
[Display(Description = "主键Id")]
|
|
[Comment("Id")]
|
|
// ✅ 主键
|
|
public int Id { 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 Code { get; set; }
|
|
}
|
|
}
|