예제 #1
0
 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}");
     }
 }
예제 #2
0
        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);
        }