I am currently inserting data into a table using the below method.
public async void PerformRegistration()
{
var personTable = App.MobileService.GetTable<PersonTable>();
var person = new PersonTable
{
FirstName = FirstNameTextBox.Text,
LastName = LastNameTextBox.Text,
EmailAddress = EmailTextBox.Text,
Password = PasswordTextBox.Password,
DateOfRegister = DateTime.Now
};
await personTable.InsertAsync(person);
}
And I access it like seen below
var person = await personTable
.Where(p => p.EmailAddress == EmailTextBox.Text)
.ToListAsync();
What is the easiest way to perform an update on an entry already in the db? I am not sure on how to keep the Id the same value.