Interface ISqlServerCdcDatabaseBuilder
Defines the contract for configuring SQL Server CDC database-specific options including database naming, connection identifiers, capture instances, and missing handler behavior.
public interface ISqlServerCdcDatabaseBuilder
Methods
CaptureInstances(params string[])
Sets the CDC capture instances to process.
ISqlServerCdcBuilder CaptureInstances(params string[] captureInstances)
Parameters
captureInstancesstring[]The capture instance names.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentNullException
Thrown when
captureInstancesis null.
DatabaseConnectionIdentifier(string)
Sets the unique identifier for the CDC source database connection.
ISqlServerCdcBuilder DatabaseConnectionIdentifier(string identifier)
Parameters
identifierstringThe connection identifier.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentException
Thrown when
identifieris null or whitespace.
DatabaseName(string)
Sets the database name for CDC processing.
ISqlServerCdcBuilder DatabaseName(string name)
Parameters
namestringThe database name.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentException
Thrown when
nameis null or whitespace.
StateConnectionIdentifier(string)
Sets the unique identifier for the state store database connection.
ISqlServerCdcBuilder StateConnectionIdentifier(string identifier)
Parameters
identifierstringThe connection identifier.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentException
Thrown when
identifieris null or whitespace.
StopOnMissingTableHandler(bool)
Sets whether processing should stop when a table handler is missing.
ISqlServerCdcBuilder StopOnMissingTableHandler(bool stop)
Parameters
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.