Share via


SqlServerDbSetExtensions.TemporalAll<TEntity> Method

Definition

Applies temporal 'All' operation on the given DbSet, which returns all historical versions of the entities as well as their current state.

public static System.Linq.IQueryable<TEntity> TemporalAll<TEntity> (this Microsoft.EntityFrameworkCore.DbSet<TEntity> source) where TEntity : class;
static member TemporalAll : Microsoft.EntityFrameworkCore.DbSet<'Entity (requires 'Entity : null)> -> System.Linq.IQueryable<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function TemporalAll(Of TEntity As Class) (source As DbSet(Of TEntity)) As IQueryable(Of TEntity)

Type Parameters

TEntity

Parameters

source
DbSet<TEntity>

Source DbSet on which the temporal operation is applied.

Returns

IQueryable<TEntity>

An IQueryable<T> representing the entities and their historical versions.

Remarks

Temporal queries are always set as 'NoTracking'.

See Using SQL Server temporal tables with EF Core for more information and examples.

Applies to