public static void Ef6DatabaseUpdate(this ICakeContext context, Ef6DatabaseUpdateSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } Ef6AddinInformation.LogVersionInformation(context.Log); var tool = new Ef6DatabaseUpdateTool(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); tool.Update(settings); }
protected override void RunTool() { var tool = new Ef6DatabaseUpdateTool(FileSystem, Environment, ProcessRunner, Tools, Log); tool.Update(Settings); }