public static void CreateAndInstallDatabase(ConnectionString connectionString, string databaseName,
                                                    string directory)
        {
            DeleteDatabase(connectionString.Server, databaseName, directory);
            CreateDatabase(connectionString.Server, databaseName, directory);

            var installer = new SqlInstaller(connectionString);

            installer.Install(VersionInfo.CurrentAssemblyVersion);
        }
        public static void InstallDatabase(string connectionString)
        {
            var installer = new SqlInstaller(connectionString);

            installer.Install(VersionInfo.CurrentAssemblyVersion);
        }