Exemplo n.º 1
0
 /// <summary>
 /// Splits a script with multiple delimited commands into commands
 /// </summary>
 /// <param name="scriptContents"></param>
 /// <returns></returns>
 public IEnumerable <string> SplitScriptIntoCommands(string scriptContents)
 {
     using (var reader = new MySqlCommandReader(scriptContents))
     {
         var commands = new List <string>();
         reader.ReadAllCommands(c => commands.Add(c));
         return(commands);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Splits a script with multiple delimited commands into commands
 /// </summary>
 /// <param name="scriptContents"></param>
 /// <returns></returns>
 public IEnumerable<string> SplitScriptIntoCommands(string scriptContents)
 {
     using (var reader = new MySqlCommandReader(scriptContents))
     {
         var commands = new List<string>();
         reader.ReadAllCommands(c => commands.Add(c));
         return commands;
     }
 }