Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created August 15, 2018 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/caf471efb25783a6892d1dafbad9602c to your computer and use it in GitHub Desktop.
Save juucustodio/caf471efb25783a6892d1dafbad9602c to your computer and use it in GitHub Desktop.
Example of how to implement local database in your Xamarin.Forms applications - http://julianocustodio.com/litedb
using System;
using System.IO;
using DemoLiteDB.Droid;
using Xamarin.Forms;
[assembly: Dependency(typeof(Helper))]
namespace DemoLiteDB.Droid
{
public class Helper : IHelper
{
public string GetFilePath(string file)
{
string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
return Path.Combine(path, file);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment