This commit is contained in:
FalconFly 2024-07-16 13:37:46 +08:00
parent f99d50d1cd
commit a58c8c9fda
2 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace CalendarNotepad.Extends
}
public static ConnectionConfig GetConfig() => new ConnectionConfig {
public static ConnectionConfig GetConfig() => new() {
DbType = DbType.Sqlite,
ConnectionString = AppConfig.SqliteFileName,
IsAutoCloseConnection = false,

View File

@ -1,8 +1,11 @@
namespace CalendarNotepad.Models
using System.ComponentModel.DataAnnotations.Schema;
namespace CalendarNotepad.Models
{
/// <summary>
/// 工作记录单元
/// </summary>
[Table("WorkUnit")]
public class WorkUnit
{
/// <summary>