CoreOptionsExtension.WithMemoryCache(IMemoryCache) Yöntem

Tanım

Bu örnekle aynı tüm seçeneklere sahip yeni bir örnek oluşturur, ancak belirtilen seçenek değiştirilmiştir. Bu yöntemi doğrudan çağırma olağan dışıdır. Bunun yerine DbContextOptionsBuilder kullanın.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithMemoryCache (Microsoft.Extensions.Caching.Memory.IMemoryCache memoryCache);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithMemoryCache (Microsoft.Extensions.Caching.Memory.IMemoryCache? memoryCache);
abstract member WithMemoryCache : Microsoft.Extensions.Caching.Memory.IMemoryCache -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithMemoryCache : Microsoft.Extensions.Caching.Memory.IMemoryCache -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithMemoryCache (memoryCache As IMemoryCache) As CoreOptionsExtension

Parametreler

memoryCache
IMemoryCache

Değiştirme seçeneği.

Döndürülenler

CoreOptionsExtension

seçeneği değiştirilmiş yeni bir örnek.

Şunlara uygulanır