Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected Repository()
- {
- try
- {
- new DL.MainDatabase(dbLocation);
- }
- catch
- {
- // Throw Exception
- // disk i/o error
- // at sqlite.sqlite3.prepare2(sqlitepcl.sqlite3 db, system.string query)[0x0001b]....
- }
- }
- public static string DatabaseFilePath
- {
- get
- {
- string applicationFolderPath = System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "Folder");
- // Create the folder path.
- System.IO.Directory.CreateDirectory(applicationFolderPath);
- return System.IO.Path.Combine(applicationFolderPath, "DB.db");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement