Пример #1
0
        private void CreateNewMigrationButton_Click(object sender, EventArgs e)
        {
            InputBox.InputBoxResult result = InputBox.Show("Please enter a description for the Migration.", "Migration Description", "", null);
            if (result.OK)
            {
                string newFile = Migration.CreateMigrationFile(MigrationFolderTextBox.Text, MigrationTableTextBox.Text, result.Text);

                AddResult("Migration file created at '" + newFile + "'");
            }
        }
Пример #2
0
        public void CreateMigrationFile()
        {
            string migrationFolder = Path.GetTempPath();

            Console.WriteLine(migrationFolder);

            string newFile = Migration.CreateMigrationFile(migrationFolder, "NUnitTest");

            Assert.IsTrue(File.Exists(newFile));
        }