Esempio n. 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            DecompressDatabaseMigration decompress = new DecompressDatabaseMigration();

            decompress.CompressModel(
                "201704120821095_AddBlogUrl",
                @"Data Source=(LocalDb)\MSSQLLocalDB;Initial Catalog=EF6_CodeFirst.BloggingContext;Integrated Security=True",
                "AddBlogUrl_NewCol.xml");
        }
Esempio n. 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            DecompressDatabaseMigration decompress = new DecompressDatabaseMigration();

            //decompress.DecompressModel(
            //    "201704120821095_AddBlogUrl",
            //    @"Data Source=(LocalDb)\MSSQLLocalDB;Initial Catalog=EF6_CodeFirst.BloggingContext;Integrated Security=True");

            decompress.DecompressModel(
                "201704121034137_AddPostClass",
                @"Data Source=(LocalDb)\MSSQLLocalDB;Initial Catalog=EF6_CodeFirst.BloggingContext;Integrated Security=True");
        }