Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static void InstallDatabase(string connectionString)
 {
     var installer = new SqlInstaller(connectionString);
     installer.Install(VersionInfo.CurrentAssemblyVersion);
 }