Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of how to implement local database in your Xamarin.Forms applications - http://julianocustodio.com/litedb
private void Get(object sender, System.EventArgs e)
{
Customers = _dataBase.GetCollection<Customer>();
if (Customers.Count() > 0)
{
var customer = Customers.FindAll().FirstOrDefault(x => x.Name == EntryName.Text);
DisplayAlert("id: " +customer?.Id, "Name: "+customer?.Name, "ok");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment