Tibialyzer.Hunt.GetTableName C# (CSharp) Method

GetTableName() public method

public GetTableName ( ) : string
return string
        public string GetTableName()
        {
            return "LootMessageTable" + dbtableid.ToString();
        }

Usage Example

        void saveLog(Hunt h, string logPath)
        {
            StreamWriter streamWriter = new StreamWriter(logPath);

            // we load the data from the database instead of from the stored dictionary so it is ordered properly
            SQLiteCommand comm = new SQLiteCommand(String.Format("SELECT message FROM \"{0}\"", h.GetTableName()), lootConn);
            SQLiteDataReader reader = comm.ExecuteReader();
            while (reader.Read()) {
                streamWriter.WriteLine(reader["message"].ToString());
            }
            streamWriter.Flush();
            streamWriter.Close();
        }
All Usage Examples Of Tibialyzer.Hunt::GetTableName