SqlServerDbSetExtensions.TemporalAll<TEntity> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Entity Framework