DesignTimeProviderServicesAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
标识查找给定数据库提供程序的设计时服务的位置。 此属性应存在于数据库提供程序的主程序集中。
此属性通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。
[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
- 特性
构造函数
| 名称 | 说明 |
|---|---|
| DesignTimeProviderServicesAttribute(String, String, String) |
初始化 DesignTimeProviderServicesAttribute 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| AssemblyName |
获取包含设计时服务的程序集的名称。 |
| PackageName |
获取包含设计时服务的 NuGet 包名称。 |
| TypeName |
获取可用于向 a ServiceCollection添加数据库提供程序设计时间服务的类型的名称。
此类型应包含具有以下签名 |