SqlServerReplOptions
Classsealednet10.0
Options for configuring the SQL Server REPL.
namespace Aspire.Hosting;
public sealed class SqlServerReplOptions{ // ...}Remarks
Section titled Remarks The selected sqlcmd client must already be installed in the SQL Server container. These options do not install a client or change the container image.
Constructors1
Section titled ConstructorsProperties1
Section titled Propertiesstring Gets or sets the sqlcmd executable path inside the SQL Server container. Defaults to
SqlServerReplCommand.Version18 , matching the integration's default SQL Server image. Examples
Section titled ExamplesSelect the legacy sqlcmd client when using an older SQL Server image:
builder.AddSqlServer("sql") .WithRepl(options => options.Command = SqlServerReplCommand.Version17);