Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.IO;
- using Android.App;
- using Android.Content;
- using Android.OS;
- using Android.Runtime;
- using Android.Views;
- using Android.Widget;
- using SQLitePCLDemoVS;
- [assembly: Dependency(typeof(Database_Android))]
- namespace SQLitePCLDemoVS.Droid
- {
- class Database_Android : IDatabase
- {
- public Database_Android() { }
- public SQLiteConnection DBConnect()
- {
- var filename = "ItemsSQLite.db3";
- string folder = System.Environment.GetFolderPath(
- System.Environment.SpecialFolder.Personal);
- var path = Path.Combine(folder, filename);
- var connection = new SQLiteConnection(path);
- return connection;
- }
- }
- }
Add Comment
Please, Sign In to add comment