CoreOptionsExtension.WithLoggerFactory(ILoggerFactory) 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.
Creates a new instance with all options the same as for this instance, but with the given option changed. It is unusual to call this method directly. Instead use DbContextOptionsBuilder.
C#
public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithLoggerFactory (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
C#
public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithLoggerFactory (Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory);
abstract member WithLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithLoggerFactory (loggerFactory As ILoggerFactory) As CoreOptionsExtension
- loggerFactory
- ILoggerFactory
The option to change.
A new instance with the option changed.
Proizvod | Verzije |
---|---|
Entity Framework Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: