WFA_psychometric_chart.Form1_main.DeleteAllDataFromTable C# (CSharp) Method

DeleteAllDataFromTable() public method

public DeleteAllDataFromTable ( string db_path, string tableName ) : void
db_path string
tableName string
return void
        public void DeleteAllDataFromTable(string db_path,string tableName)
        {
           // string tableName = "tbl_" + selectedBuildingList[0].BuildingName + "_device_info_for_node";// "tbl_" ++"_node_value";
           // string databasePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
           // string databaseFile = databasePath + @"\db_psychrometric_project.s3db";
            string connString = @"Data Source=" + db_path + ";Version=3;";

            using (SQLiteConnection connection = new SQLiteConnection(connString))
            {
                connection.Open();
                //SQLiteDataReader reader = null;
                string queryString = "delete   from  " + tableName;
                SQLiteCommand command = new SQLiteCommand(queryString, connection);
                command.ExecuteNonQuery();

            }//Close of using 
        }
Form1_main