Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.IO;
- using SQLite;
- using SQLiteNetPCLVS.iOS;
- [assembly: Xamarin.Forms.Dependency(typeof(Database_iOS))]
- namespace SQLiteNetPCLVS.iOS
- {
- class Database_iOS : IDatabase
- {
- public Database_iOS() { }
- public SQLiteConnection DBConnect()
- {
- var filename = "ItemsSQLite.db3";
- string folder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
- string libraryFolder = Path.Combine(folder, "..", "Library");
- var path = Path.Combine(libraryFolder, filename);
- var connection = new SQLiteConnection(path);
- return connection;
- }
- }
- }
Add Comment
Please, Sign In to add comment