Esempio n. 1
0
 public void InsertRow(string tableName, string columnNames, string values)
 {
     if (UnderlayingDatabase == null)
     {
         throw new InvalidOperationException("The Database is not created.");
     }
     UnderlayingDatabase.ExecSQL($"INSERT INTO {tableName} ({columnNames}) VALUES ({values});");
 }
Esempio n. 2
0
 public void CreateTable(string tableName, string tableMap)
 {
     if (UnderlayingDatabase == null)
     {
         throw new InvalidOperationException("The Database is not created.");
     }
     UnderlayingDatabase.ExecSQL($"CREATE TABLE {tableName}({tableMap});");
 }