Skip to content

Instantly share code, notes, and snippets.

@chukitow
Created December 13, 2013 04:04
Show Gist options
  • Save chukitow/7939631 to your computer and use it in GitHub Desktop.
Save chukitow/7939631 to your computer and use it in GitHub Desktop.
db = new SQLiteDatabase();
Dictionary<String, String> data = new Dictionary<String, String>();
data.Add("NAME", nameTextBox.Text);
data.Add("DESCRIPTION", descriptionTextBox.Text);
data.Add("PREP_TIME", prepTimeTextBox.Text);
data.Add("COOKING_TIME", cookingTimeTextBox.Text);
data.Add("COOKING_DIRECTIONS", "Placeholder");
try
{
db.Insert("RECIPE", data);
}
catch(Exception crap)
{
MessageBox.Show(crap.Message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment