private async void SeedData() { if (await database.Table <TShirttable>().CountAsync() == 0) { var TShirttable = new TShirttable { Name = "Xamarin", Size = 20, ShippingAddress = "Software" }; await database.InsertAsync(TShirttable); } }
public async Task <int> UpdateProduct(TShirttable TShirttable) { return(await database.UpdateAsync(TShirttable)); }
public Task <int> DeleteProduct(TShirttable TShirttable) { return(database.DeleteAsync(TShirttable)); }