feature: shortcut

This commit is contained in:
2022-03-17 20:29:27 +08:00
parent 60f7824cb5
commit ef5e91aad1
18 changed files with 118 additions and 36 deletions

View File

@@ -38,6 +38,7 @@ namespace Billing.Store
catch (Exception ex)
{
Helper.Error("database.close", ex);
return false;
}
try
{
@@ -54,12 +55,13 @@ namespace Billing.Store
SQLiteOpenFlags.ReadWrite |
SQLiteOpenFlags.Create |
SQLiteOpenFlags.SharedCache);
return true;
}
catch (Exception ex)
{
Helper.Error("database.connect", ex);
return false;
}
return true;
}
public static readonly AsyncLazy<StoreHelper> Instance = new(async () =>