Example #1
0
        public void Install()
        {
            string installerRawScript = InstallerHelper.GetInstallRawScript();
            string installerScript    = InstallerHelper.ReplacePlaceHolders(installerRawScript, new());

            using SqlConnection sqlConnection = new(_connectionString);
            using SqlCommand sqlCommand       = new(installerScript, sqlConnection);

            sqlConnection.Open();
            int auditInserted = sqlCommand.ExecuteNonQuery();

            sqlConnection.Close();
        }