public LiteDbAsyncService() { var folder = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); var databasePath = Path.Combine(folder, "hello.db"); _liteDatabaseAsync = new LiteDatabaseAsync(databasePath); }
public LiteDbAsyncService() { try { //Path.Combine(FileSystem.AppDataDirectory _db = new LiteDatabaseAsync(_databasePath); } catch (IOException ex) { System.Diagnostics.Debug.Print(ex.StackTrace); throw new Exception("LiteDB System.IO.IOException: 共享冲突"); } }