共用方式為


ITypeMappingSourcePlugin 介面

定義

表示外掛程式類型對應來源。

public interface ITypeMappingSourcePlugin
type ITypeMappingSourcePlugin = interface
Public Interface ITypeMappingSourcePlugin

備註

服務存留期為 Singleton ,而且允許多個註冊。 這表示許多實例會使用 DbContext 每個服務的單一實例。 實作必須是安全線程。 此服務無法相依于註冊為 Scoped 的服務。

如需詳細資訊 和範例,請參閱資料庫提供者和延伸模組的實作

方法

FindMapping(TypeMappingInfo)

尋找指定資訊的型別對應。

適用於