ExecuteSqlScripts() static private method

static private ExecuteSqlScripts ( string connectionStringName, string directory ) : void
connectionStringName string
directory string
return void
Exemplo n.º 1
0
        public void Create(string connectionStringName, int port)
        {
            SqlFileCommandExecutor.ExecuteSqlScripts(connectionStringName, Environment.CurrentDirectory + "\\ServiceBroker\\SQL\\Create",
                                                     sql =>
            {
                sql = sql.Replace("<port, , 2204>", port.ToString());
                return(sql);
            });

            SqlConnection.ClearAllPools();
        }
 public static void PurgeAll(string connectionStringName)
 {
     SqlFileCommandExecutor.ExecuteSqlScripts(connectionStringName, Environment.CurrentDirectory + "\\ServiceBroker\\SQL\\Purge");
 }