SqlServerDbSetExtensions.TemporalAsOf<TEntity> 메서드

정의

지정된 DbSet에 임시 'AsOf' 작업을 적용합니다. 이 작업은 지정된 시점에 데이터베이스에 있던 요소만 반환합니다.

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

형식 매개 변수

TEntity

매개 변수

source
DbSet<TEntity>

임시 작업이 적용되는 원본 DbSet입니다.

utcPointInTime
DateTime

DateTime 결과를 반환해야 하는 시점을 나타냅니다.

반환

IQueryable<TEntity>

IQueryable 지정된 시점의 엔터티를 나타내는 입니다.

설명

임시 정보는 데이터베이스에 UTC 형식으로 저장되므로 현지 시간의 인수 DateTime 로 인해 예기치 않은 결과가 발생할 수 있습니다.

임시 쿼리는 항상 'NoTracking'으로 설정됩니다.

자세한 내용과 예제는 EF Core에서 SQL Server 임시 테이블 사용을 참조하세요.

적용 대상