語言

SqlServerDbSetExtensions.TemporalAll<TEntity> 方法

定義

對給定的資料庫集套用時間「全部」操作,回傳所有實體的歷史版本及其當前狀態。

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)

類型參數

TEntity

參數

source
DbSet<TEntity>

原始資料庫集,該資料庫集是應用時間運算的來源。

傳回

IQueryable<TEntity>

An IQueryable<T> 代表實體及其歷史版本。

備註

時序查詢總是設定為「NoTracking」。

更多資訊與範例請參見「使用 EF Core 使用 SQL Server 時間資料表」。

適用於