public static ExecuteQueryAsnyc ( string MySqlCommand ) : void | ||
MySqlCommand | string | |
리턴 | void |
public static void ExecuteQuery() { QueryWriter.Close(); string[] tmpString = File.ReadAllLines(Path); for (int i = 0; i < tmpString.Length; i++) { Console.WriteLine("{0} queries to execute!", tmpString.Length); if (tmpString[i] != null) { Database.ExecuteQueryAsnyc(tmpString[i]); } } QueryWriter = new StreamWriter(Path); }
public static void ExecuteSavedQueries() { if (File.Exists(Path)) { string[] tmpString = File.ReadAllLines(Path); for (int i = 0; i < tmpString.Length; i++) { if (tmpString[i] != null) { Database.ExecuteQueryAsnyc(tmpString[i]); } } } Console.Clear(); Console.WriteLine("-------------------------------------------------------"); Console.WriteLine(" <Silkroad Loginserver> Copyright (C) <2011> <DarkEmu>"); Console.WriteLine("-------------------------------------------------------"); Console.WriteLine("Loading essentiel data and connecting to database.\nThis could take some minutes!"); Database.CheckTables(new string[] { "news", "server", "user" }); Console.WriteLine("Executed the queries!"); QueryWriter = new StreamWriter(Path); }