Class TemporalClause
The FOR SYSTEM_TIME temporal-table clause attached to a query through
EntityBuilder.ForSystemTime. Create it with one of the static factory methods; the native
syntax is rendered by the provider dialect.
public sealed record TemporalClause : IEquatable<TemporalClause>
- Inheritance
-
TemporalClause
- Implements
- Inherited Members
- Extension Methods
Properties
From
The AS OF point, or the start of the range.
public DateTime From { get; }
Property Value
Kind
Which temporal clause is applied.
public TemporalKind Kind { get; }
Property Value
To
public DateTime To { get; }
Property Value
Methods
All()
Every row version (ALL).
public static TemporalClause All()
Returns
AsOf(DateTime)
Rows that were valid at point in time (AS OF).
public static TemporalClause AsOf(DateTime point)
Parameters
pointDateTimeThe point in time to query.
Returns
Between(DateTime, DateTime)
Rows valid at some point in the closed-open range (BETWEEN ... AND ...).
public static TemporalClause Between(DateTime from, DateTime to)
Parameters
Returns
ContainedIn(DateTime, DateTime)
Rows whose validity period lies entirely within the range (CONTAINED IN).
public static TemporalClause ContainedIn(DateTime from, DateTime to)
Parameters
Returns
FromTo(DateTime, DateTime)
Rows valid in the closed-open range (FROM ... TO ...).
public static TemporalClause FromTo(DateTime from, DateTime to)