Esempio n. 1
0
        public static bool InsertPhoneme(PhonemeRecord newPhonemeRecord)
        {
            try
            {
                string queryinsert = "INSERT INTO PhonemeDictionary (UrduPhoneme, IPA, UPS) VALUES ('" + newPhonemeRecord.UrduPhoneme + "', '" + newPhonemeRecord.IpaPhoneme + "', '" + newPhonemeRecord.UpsPhoneme + "');";
                command = new OleDbCommand(queryinsert, OpenConnection());
                if (command.ExecuteNonQuery() >= 0)
                {
                    return(true);
                }

                return(false);
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                connection.Close();
            }
        }
 public static bool AddNewPhoneme(PhonemeRecord newPhonemeRecord)
 {
     return(Database.InsertPhoneme(newPhonemeRecord));
 }