public static void SpeichereAntwort(AntwortenModel antwort, string testrunOid) { using (IDbConnection connection = new SQLiteConnection(LoadConnectionString())) { connection.Execute($"insert into Antwort (Infinitiv, SimplePast, PastParticiple, Translation, TestRun_Oid) " + $"values ({antwort.Infinitiv}, {antwort.SimplePastEingabe}), {antwort.PastParticipleEingabe}, {antwort.ÜbersetzungEingabe}, {testrunOid}"); } }
private void AntwortAbgeben(object sender, RoutedEventArgs e) { var antwort = new AntwortenModel { Infinitiv = VocableDisplay.Text, SimplePastEingabe = SimplePastEingabe.Text, PastParticipleEingabe = PastParticipleEingabe.Text, ÜbersetzungEingabe = TranslationEingabe.Text, TestrunOid = AktuellerTestlauf.Oid }; SqliteDataAccess.SpeichereAntwort(antwort, AktuellerTestlauf.Oid); }