public static void RestoreBacpac(this ICakeContext context, String connectionString, String databaseName, FilePath bacpacFilePath) { Guard.ArgumentIsNotNull(context, nameof(context)); Guard.ArgumentIsNotNull(connectionString, nameof(connectionString)); Guard.ArgumentIsNotNull(bacpacFilePath, nameof(bacpacFilePath)); SqlBacpacImpl.RestoreBacpac(context, connectionString, databaseName, bacpacFilePath.FullPath); }
public static void CreateBacpacFile(this ICakeContext context, String connectionString, String databaseName, FilePath resultingFilePath) { Guard.ArgumentIsNotNull(context, nameof(context)); Guard.ArgumentIsNotNull(connectionString, nameof(connectionString)); Guard.ArgumentIsNotNull(resultingFilePath, nameof(resultingFilePath)); SqlBacpacImpl.CreateBacpacFile(context, connectionString, databaseName, resultingFilePath.FullPath); }