DbContextOptionsBuilder.ConfigureLoggingCacheTime(TimeSpan) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures how long EF Core will cache logging configuration in certain high-performance paths. This makes EF Core skip potentially costly logging checks, but means that runtime logging changes (e.g. registering a new DiagnosticListener may not be taken into account right away).
public virtual Microsoft.EntityFrameworkCore.DbContextOptionsBuilder ConfigureLoggingCacheTime (TimeSpan timeSpan);
abstract member ConfigureLoggingCacheTime : TimeSpan -> Microsoft.EntityFrameworkCore.DbContextOptionsBuilder
override this.ConfigureLoggingCacheTime : TimeSpan -> Microsoft.EntityFrameworkCore.DbContextOptionsBuilder
Public Overridable Function ConfigureLoggingCacheTime (timeSpan As TimeSpan) As DbContextOptionsBuilder
- timeSpan
- TimeSpan
The maximum time period over which to skip logging checks before checking again.
The same builder instance so that multiple calls can be chained.
Defaults to one second.
See Using DbContextOptions and Logging for more information and examples.
Proizvod | Verzije |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: