新增配置项
This commit is contained in:
1
Db/DB.cs
1
Db/DB.cs
@@ -30,5 +30,6 @@ public static class DB
|
||||
//建表
|
||||
Main.CodeFirst.InitTables<VideoTable>();
|
||||
Main.CodeFirst.InitTables<DeviceTable>();
|
||||
Main.CodeFirst.InitTables<ConfigTable>();
|
||||
}
|
||||
}
|
||||
15
Db/Tables/ConfigTable.cs
Normal file
15
Db/Tables/ConfigTable.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace ACBuildService;
|
||||
|
||||
[SugarTable("cfg")]
|
||||
public class ConfigTable
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备id
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public string Key { get; set; }
|
||||
|
||||
public string Value { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user