语言

SqlServerDbSetExtensions.TemporalAll<TEntity> 方法

定义

对给定 DbSet 应用临时“All”操作,该操作返回实体的所有历史版本及其当前状态。

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>

应用临时操作的源 DbSet。

返回

IQueryable<TEntity>

表示 IQueryable<T> 实体及其历史版本。

注解

临时查询始终设置为“NoTracking”。

有关详细信息和示例,请参阅将SQL Server临时表与 EF Core 配合使用。

适用于