Exemple #1
0
        public static void DotNetCoreEfMigrationScript(this ICakeContext context, string project, ProcessArgumentBuilder arguments, DotNetCoreEfMigrationScriptSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (settings == null)
            {
                settings = new DotNetCoreEfMigrationScriptSettings();
            }

            var runner = new DotNetCoreEfMigrationScripter(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Script(project, arguments, settings);
        }
Exemple #2
0
        protected override void RunTool()
        {
            var tool = new DotNetCoreEfMigrationScripter(FileSystem, Environment, ProcessRunner, Tools);

            tool.Script(Project, Arguments, Settings);
        }