public static void SqlPackageScript(this ICakeContext context, SqlPackageScriptSettings settings, ProcessSettings processSettings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var runner = new SqlPackageScriptRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Execute(settings ?? new SqlPackageScriptSettings(), processSettings); }
public static void SqlPackageScript(this ICakeContext context, Action <SqlPackageScriptSettings> configurationAction) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (configurationAction == null) { throw new ArgumentNullException(nameof(configurationAction)); } var settings = new SqlPackageScriptSettings(); configurationAction(settings); var runner = new SqlPackageScriptRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Execute(settings); }