语言

CoreOptionsExtension.WithLoggingCacheTime(TimeSpan) 方法

定义

创建与此实例相同的所有选项的新实例,但给定选项已更改。 直接调用此方法并不常见。 请改用 DbContextOptionsBuilder。

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithLoggingCacheTime(TimeSpan timeSpan);
abstract member WithLoggingCacheTime : TimeSpan -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithLoggingCacheTime : TimeSpan -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithLoggingCacheTime (timeSpan As TimeSpan) As CoreOptionsExtension

参数

timeSpan
TimeSpan

在再次检查之前跳过日志记录检查的最长时间。

返回

选项已更改的新实例。

适用于