Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. protected Repository()
  2. {
  3. try
  4. {
  5. new DL.MainDatabase(dbLocation);
  6. }
  7. catch
  8. {
  9. // Throw Exception
  10. // disk i/o error
  11. // at sqlite.sqlite3.prepare2(sqlitepcl.sqlite3 db, system.string query)[0x0001b]....
  12. }
  13. }
  14.  
  15. public static string DatabaseFilePath
  16. {
  17. get
  18. {
  19. string applicationFolderPath = System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "Folder");
  20.  
  21. // Create the folder path.
  22. System.IO.Directory.CreateDirectory(applicationFolderPath);
  23.  
  24. return System.IO.Path.Combine(applicationFolderPath, "DB.db");
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement