Created
August 15, 2018 16:28
-
-
Save juucustodio/a2da663e4dfba6c62d3d80070bc18474 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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