microsoft / DacFx

SQL Server database schema validation, deployment, and upgrade runtime. Enables declarative database development and database portability across SQL Server versions and environments.
https://aka.ms/sqlpackage-ref
MIT License
292 stars 15 forks source link

An overload of GenerateDeployScript that accepts Stream #424

Open rmeshksar opened 3 months ago

rmeshksar commented 3 months ago

Hi, In DacServices class there are 3 definitions of GenerateDeployScript method:

public string GenerateDeployScript(DacPackage package, string targetDatabaseName, DacDeployOptions options = null, CancellationToken? cancellationToken = null)

public static string GenerateDeployScript(DacPackage sourcePackage, DacPackage targetPackage, string targetDatabaseName, DacDeployOptions options = null)

public static void GenerateDeployScript(Stream outputStream, DacPackage sourcePackage, DacPackage targetPackage, string targetDatabaseName, DacDeployOptions options = null)

I would like to request for adding an overload to the first definition that accepts Stream like what is available for the static method.

Thanks.