Exemplo n.º 1
0
        /// <summary>
        ///     Scaffolds the initial code-based migration corresponding to a previously run database initializer.
        /// </summary>
        /// <param name="language"> The programming language of the generated migration. </param>
        /// <param name="rootNamespace"> The root namespace of the project the migration will be added to. </param>
        /// <returns> The scaffolded migration. </returns>
        public ScaffoldedMigration ScaffoldInitialCreate(string language, string rootNamespace)
        {
            var runner
                = new InitialCreateScaffoldRunner
                {
                Language      = language,
                RootNamespace = rootNamespace
                };

            ConfigureRunner(runner);

            Run(runner);

            return((ScaffoldedMigration)_appDomain.GetData("result"));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Scaffolds the initial code-based migration corresponding to a previously run database initializer.
        /// </summary>
        /// <param name="language"> The programming language of the generated migration. </param>
        /// <param name="rootNamespace"> The root namespace of the project the migration will be added to. </param>
        /// <returns> The scaffolded migration. </returns>
        public ScaffoldedMigration ScaffoldInitialCreate(string language, string rootNamespace)
        {
            var runner
                = new InitialCreateScaffoldRunner
                    {
                        Language = language,
                        RootNamespace = rootNamespace
                    };

            ConfigureRunner(runner);

            Run(runner);

            return (ScaffoldedMigration)_appDomain.GetData("result");
        }