SqlServerDbSetExtensions.TemporalAll<TEntity> Metoda

Definicja

Stosuje czasową operację "Wszystkie" dla danego zestawu dbSet, która zwraca wszystkie historyczne wersje jednostek, a także ich bieżący stan.

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)

Parametry typu

TEntity

Parametry

source
DbSet<TEntity>

Źródłowy zestaw dbset, na którym jest stosowana operacja czasowa.

Zwraca

IQueryable<TEntity>

Reprezentacja IQueryable<T> jednostek i ich wersji historycznych.

Uwagi

Zapytania czasowe są zawsze ustawiane jako "NoTracking".

Aby uzyskać więcej informacji i przykładów, zobacz Using SQL Server temporal tables with EF Core (Używanie tabel czasowych SQL Server z programem EF Core).

Dotyczy