Delen via


DesignTimeProviderServicesAttribute Class

Definition

Identifies where to find the design time services for a given database provider. This attribute should be present in the primary assembly of the database provider.

This attribute is typically used by database providers (and other extensions). It is generally not used in application code.

[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
Inheritance
DesignTimeProviderServicesAttribute
Attributes

Constructors

DesignTimeProviderServicesAttribute(String, String, String)

Initializes a new instance of the DesignTimeProviderServicesAttribute class.

Properties

AssemblyName

Gets the name of the assembly that contains the design time services.

PackageName

Gets the NuGet package name that contains the design time services.

TypeName

Gets the name of the type that can be used to add the database providers design time services to a ServiceCollection. This type should contain a method with the following signature public IServiceCollection ConfigureDesignTimeServices(IServiceCollection serviceCollection).

Applies to