EntityFrameworkServicesBuilder.TryGetServiceCharacteristics(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會針對特定服務類型取得 。ServiceCharacteristics
protected virtual Microsoft.EntityFrameworkCore.Infrastructure.ServiceCharacteristics? TryGetServiceCharacteristics(Type serviceType);
abstract member TryGetServiceCharacteristics : Type -> Nullable<Microsoft.EntityFrameworkCore.Infrastructure.ServiceCharacteristics>
override this.TryGetServiceCharacteristics : Type -> Nullable<Microsoft.EntityFrameworkCore.Infrastructure.ServiceCharacteristics>
Protected Overridable Function TryGetServiceCharacteristics (serviceType As Type) As Nullable(Of ServiceCharacteristics)
參數
- serviceType
- Type
定義服務 API 的型別。
傳回
如果 ServiceCharacteristics 不是EF服務,那是針對類型 null 。
備註
更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。