optimized and add diagnostic feature

This commit is contained in:
2022-03-15 15:17:02 +08:00
parent 77b4e54734
commit 5b209cc19c
45 changed files with 380 additions and 122 deletions

View File

@ -6,6 +6,9 @@ namespace Billing.Models
{
private const string ICON_DEFAULT = "ic_default";
private static Account empty;
public static Account Empty => empty ??= new() { Id = -1 };
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public string Icon { get; set; } = ICON_DEFAULT;

View File

@ -8,6 +8,9 @@ namespace Billing.Models
private const string ICON_DEFAULT = "ic_default";
private const long TRANSPARENT_COLOR = 0x00ffffffL;
private static Category empty;
public static Category Empty => empty ??= new() { Id = -1 };
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public CategoryType Type { get; set; }

View File

@ -0,0 +1,14 @@
using System;
using SQLite;
namespace Billing.Models
{
public class Logs : IIdItem
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public DateTime LogTime { get; set; }
public string Category { get; set; }
public string Detail { get; set; }
}
}