Table of Contents

Class DesignTimeProviderServicesAttribute

Namespace
Microsoft.EntityFrameworkCore.Design
Assembly
Microsoft.EntityFrameworkCore.dll

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.

[AttributeUsage(AttributeTargets.Assembly)]
public sealed class DesignTimeProviderServicesAttribute : Attribute
Inheritance
DesignTimeProviderServicesAttribute
Inherited Members

Remarks

See Implementation of database providers and extensions for more information and examples.

Constructors

DesignTimeProviderServicesAttribute(string)

Initializes a new instance of the DesignTimeProviderServicesAttribute class.

public DesignTimeProviderServicesAttribute(string typeName)

Parameters

typeName string

The name of the type that can be used to add the database providers design time services to a ServiceCollection. This type should implement IDesignTimeServices.

Properties

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 implement IDesignTimeServices.

public string TypeName { get; }

Property Value

string