語言

DesignTimeProviderServicesAttribute 類別

定義

識別特定資料庫供應商的設計時服務來源。 此屬性應存在於資料庫提供者的主要組件中。

此屬性通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

[System.AttributeUsage(System.AttributeTargets.Assembly)]
public sealed class DesignTimeProviderServicesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly)>]
type DesignTimeProviderServicesAttribute = class
    inherit Attribute
Public NotInheritable Class DesignTimeProviderServicesAttribute
Inherits Attribute
繼承
DesignTimeProviderServicesAttribute
屬性

建構函式

名稱 Description
DesignTimeProviderServicesAttribute(String, String, String)

初始化 DesignTimeProviderServicesAttribute 類別的新執行個體。

屬性

名稱 Description
AssemblyName

取得包含設計時服務的組件名稱。

PackageName

取得包含設計時服務的 NuGet 套件名稱。

TypeName

取得可用來新增資料庫提供者設計時服務的 ServiceCollection類型名稱。 此類型應包含一個具有以下簽名 public IServiceCollection ConfigureDesignTimeServices(IServiceCollection serviceCollection)的方法。

適用於