Dil

IQueryCompilationContextFactory Arabirim

Tanım

Örnek oluşturmaya QueryCompilationContext yönelik bir fabrika.

public interface IQueryCompilationContextFactory
type IQueryCompilationContextFactory = interface
Public Interface IQueryCompilationContextFactory

Açıklamalar

Hizmet ömrü şeklindedir Scoped. Bu, her DbContext örneğin kendi bu hizmet örneğini kullanacağı anlamına gelir. Uygulama, herhangi bir yaşam süresiyle kaydedilen diğer hizmetlere bağlı olabilir. Uygulamanın iş parçacığı güvenli olması gerekmez.

Daha fazla bilgi ve örnek için bkz. Veritabanı sağlayıcılarının ve uzantıların uygulanması ve EF Core sorgularının çalışma şekli .

Yöntemler

Veri Akışı Adı Description
Create(Boolean)

Yeni QueryCompilationContextbir oluşturur.

CreatePrecompiled(Boolean, IReadOnlySet<String>)

Yeni QueryCompilationContextbir oluşturur.

CreatePrecompiled(Boolean)

Yeni QueryCompilationContextbir oluşturur.

Şunlara uygulanır