2026-01-13 12:21:08 +08:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System;
|
2025-11-11 14:30:29 +08:00
|
|
|
|
using System.Collections;
|
2025-10-30 10:41:42 +08:00
|
|
|
|
using System.Collections.Generic;
|
2026-01-13 12:21:08 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2025-10-30 10:41:42 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace AiSportsMicrospaceDB.Entities
|
|
|
|
|
|
{
|
2026-01-13 12:21:08 +08:00
|
|
|
|
[Table("BasicConfig")]
|
2025-10-30 10:41:42 +08:00
|
|
|
|
public class BasicConfig
|
|
|
|
|
|
{
|
2026-01-13 12:21:08 +08:00
|
|
|
|
[Key]
|
|
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
|
|
|
[Display(Description = "主键Id")]
|
|
|
|
|
|
[Comment("Id")]
|
2025-10-30 10:41:42 +08:00
|
|
|
|
// ✅ 主键
|
|
|
|
|
|
public int Id { get; set; }
|
2026-01-13 12:21:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///设备编号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Display(Name = "设备编号")]
|
|
|
|
|
|
[Comment("设备编号")]
|
|
|
|
|
|
[Column(TypeName = "nvarchar(100)")]
|
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///摄像头地址
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Display(Name = "摄像头地址")]
|
|
|
|
|
|
[Comment("摄像头地址")]
|
|
|
|
|
|
[Column(TypeName = "nvarchar(100)")]
|
2025-10-30 10:41:42 +08:00
|
|
|
|
public string Host { get; set; }
|
2026-01-13 12:21:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///用户名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Display(Name = "用户名")]
|
|
|
|
|
|
[Comment("用户名")]
|
|
|
|
|
|
[Column(TypeName = "nvarchar(20)")]
|
2025-10-30 10:41:42 +08:00
|
|
|
|
public string UserName { get; set; }
|
2026-01-13 12:21:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///密码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Display(Name = "密码")]
|
|
|
|
|
|
[Comment("密码")]
|
|
|
|
|
|
[Column(TypeName = "nvarchar(20)")]
|
2025-10-30 10:41:42 +08:00
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|