CoreOptionsExtension.WithDbContextLogger(IDbContextLogger) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Tüm seçenekleri bu örnekle aynı olan ancak belirtilen seçeneğin değiştirildiği yeni bir örnek oluşturur. Bu yöntemi doğrudan çağırmak olağan dışıdır. Bunun yerine kullanın DbContextOptionsBuilder.
public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithDbContextLogger(Microsoft.EntityFrameworkCore.Diagnostics.IDbContextLogger contextLogger);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithDbContextLogger(Microsoft.EntityFrameworkCore.Diagnostics.IDbContextLogger? contextLogger);
abstract member WithDbContextLogger : Microsoft.EntityFrameworkCore.Diagnostics.IDbContextLogger -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithDbContextLogger : Microsoft.EntityFrameworkCore.Diagnostics.IDbContextLogger -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithDbContextLogger (contextLogger As IDbContextLogger) As CoreOptionsExtension
Parametreler
- contextLogger
- IDbContextLogger
Değiştirme seçeneği.
Döndürülenler
Seçeneği değiştirilmiş yeni bir örnek.