private async void setTerminologyAsync(string otherTerm, string engTerm) { tblTerminology newTerm = new tblTerminology() { engTerm = engTerm, otherLangTerm = otherTerm, langID = 0 }; // SQLiteAsyncConnection conn = new SQLiteAsyncConnection("Lang_Dict.db"); await conn.InsertAsync(newTerm); }
//thid method will set the data into table dictionary private async void setDataInDatabaseAsync(string term, string lTerm) { //insert into a database int LangId = 10; tblTerminology newRes = new tblTerminology() { engTerm = lTerm, otherLangTerm = term, langID = LangId }; // SQLiteAsyncConnection conn = new SQLiteAsyncConnection("Lang_Dict.db"); await App.conn.InsertAsync(newRes); }