Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace
Tortuga.Chain.SqlServer Namespace

SqlServerAppenders..::..WithHistory Method (TableDbCommandBuilder<(Of <(<'SqlCommand, SqlParameter, SqlServerLimitOption>)>)>, DateTime, DateTime, HistoryQueryMode)

Adds a FOR SYSTEM_TIME cluse to the query to get the historical record for a specific date range.

Namespace:  Tortuga.Chain.SqlServer
Assembly:  Tortuga.Chain.SqlServer.MDS (in Tortuga.Chain.SqlServer.MDS.dll)

Syntax


public static TableDbCommandBuilder<SqlCommand, SqlParameter, SqlServerLimitOption> WithHistory(
	this TableDbCommandBuilder<SqlCommand, SqlParameter, SqlServerLimitOption> tableDbCommand,
	DateTime fromDate,
	DateTime toDate,
	HistoryQueryMode mode
)
<ExtensionAttribute> _
Public Shared Function WithHistory ( _
	tableDbCommand As TableDbCommandBuilder(Of SqlCommand, SqlParameter, SqlServerLimitOption), _
	fromDate As DateTime, _
	toDate As DateTime, _
	mode As HistoryQueryMode _
) As TableDbCommandBuilder(Of SqlCommand, SqlParameter, SqlServerLimitOption)
[ExtensionAttribute]
public:
static TableDbCommandBuilder<SqlCommand^, SqlParameter^, SqlServerLimitOption^>^ WithHistory(
	TableDbCommandBuilder<SqlCommand^, SqlParameter^, SqlServerLimitOption^>^ tableDbCommand, 
	DateTime^ fromDate, 
	DateTime^ toDate, 
	HistoryQueryMode^ mode
)

Parameters

tableDbCommand
Type: Tortuga.Chain.CommandBuilders..::..TableDbCommandBuilder<(Of <(<'SqlCommand, SqlParameter, SqlServerLimitOption>)>)>
The table database command.
fromDate
Type: DateTime
The lower date range.
toDate
Type: DateTime
The upper date range.
mode
Type: Tortuga.Chain.SqlServer..::..HistoryQueryMode
The mode determines how the bounds checking will be applied (i.e. inclusive or exclusive).