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