DatabaseProvider<TProviderServices,TOptionsExtension> Sınıf

Tanım

Bir veritabanı sağlayıcısının geçerli bağlam için seçili olduğunu ve bu hizmetin çalışması için gereken hizmetleri sağlamasını bildirebileceği birincil nokta.

Bu tür genellikle veritabanı sağlayıcıları (ve diğer uzantılar) tarafından kullanılır. Genellikle uygulama kodunda kullanılmaz.

public class DatabaseProvider<TProviderServices,TOptionsExtension> : Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider where TProviderServices : class, IDatabaseProviderServices where TOptionsExtension : class, IDbContextOptionsExtension
type DatabaseProvider<'ProviderServices, 'OptionsExtension (requires 'ProviderServices : null and 'ProviderServices :> IDatabaseProviderServices and 'OptionsExtension : null and 'OptionsExtension :> IDbContextOptionsExtension)> = class
    interface IDatabaseProvider
Public Class DatabaseProvider(Of TProviderServices, TOptionsExtension)
Implements IDatabaseProvider

Tür Parametreleri

TProviderServices

Veritabanı sağlayıcısının çalışması için EF tarafından gereken temel hizmet kümesi.

TOptionsExtension

Veritabanı sağlayıcısının, Extensions Bu öğenin seçili olduğunu belirlemek için ekleneceği seçeneklerin türü (ve veritabanına özgü ayarları depolamak için).

Devralma
DatabaseProvider<TProviderServices,TOptionsExtension>
Uygulamalar

Oluşturucular

DatabaseProvider<TProviderServices,TOptionsExtension>()

Yöntemler

GetProviderServices(IServiceProvider)

Veritabanı sağlayıcısının çalışması için EF tarafından gereken temel hizmet kümesini alır.

IsConfigured(IDbContextOptions)

Bu veritabanı sağlayıcısının belirli bir bağlam için seçilip seçilmediğini gösteren bir değer alır.

Şunlara uygulanır