This commit is contained in:
2022-03-28 14:46:16 +08:00
parent ba289b6087
commit 469b1a8627
7 changed files with 12 additions and 17 deletions

View File

@@ -76,7 +76,7 @@ namespace Billing.Store
}
try
{
var count = await database.ExecuteScalarAsync<int>("SELECT COUNT(Id) FROM [Category]");
var count = await database.ExecuteScalarAsync<int>("SELECT COUNT(Id) FROM [Account]");
if (count <= 0)
{
await database.InsertAsync(new Account { Name = Resource.Cash, Icon = "wallet" });