Interface ISqlServerCdcProcessingBuilder
Defines the contract for configuring SQL Server CDC processing options including schema, table naming, polling behavior, batch sizing, and command timeout.
public interface ISqlServerCdcProcessingBuilder
Methods
BatchSize(int)
Sets the batch size for CDC change processing.
ISqlServerCdcBuilder BatchSize(int size)
Parameters
sizeintThe batch size.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentOutOfRangeException
Thrown when
sizeis not positive.
CommandTimeout(TimeSpan)
Sets the command timeout for database operations.
ISqlServerCdcBuilder CommandTimeout(TimeSpan timeout)
Parameters
timeoutTimeSpanThe command timeout.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentOutOfRangeException
Thrown when
timeoutis not positive.
PollingInterval(TimeSpan)
Sets the polling interval for CDC change detection.
ISqlServerCdcBuilder PollingInterval(TimeSpan interval)
Parameters
intervalTimeSpanThe polling interval.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentOutOfRangeException
Thrown when
intervalis not positive.
SchemaName(string)
Sets the schema name for CDC state tables.
ISqlServerCdcBuilder SchemaName(string schema)
Parameters
schemastringThe schema name.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentException
Thrown when
schemais null or whitespace.
StateTableName(string)
Sets the table name for CDC processing state.
ISqlServerCdcBuilder StateTableName(string tableName)
Parameters
tableNamestringThe table name.
Returns
- ISqlServerCdcBuilder
The builder for fluent chaining.
Exceptions
- ArgumentException
Thrown when
tableNameis null or whitespace.