Table of Contents

Class DesignTimeServicesReferenceAttribute

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

Identifies where to find additional design time services.

This attribute is typically used by design-time extensions. It is generally not used in application code.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class DesignTimeServicesReferenceAttribute : Attribute
Inheritance
DesignTimeServicesReferenceAttribute
Inherited Members

Remarks

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

Constructors

DesignTimeServicesReferenceAttribute(string)

Initializes a new instance of the DesignTimeServicesReferenceAttribute class.

public DesignTimeServicesReferenceAttribute(string typeName)

Parameters

typeName string

The assembly-qualified name of the type that can be used to add additional design time services to a ServiceCollection. This type should implement IDesignTimeServices.

DesignTimeServicesReferenceAttribute(string, string?)

Initializes a new instance of the DesignTimeServicesReferenceAttribute class.

public DesignTimeServicesReferenceAttribute(string typeName, string? forProvider)

Parameters

typeName string

The assembly-qualified name of the type that can be used to add additional design time services to a ServiceCollection. This type should implement IDesignTimeServices.

forProvider string

The name of the provider for which these services should be added. If null, the services will be added for all providers.

Properties

ForProvider

Gets the name of the provider for which these services should be added. If null, the services will be added for all providers.

public string? ForProvider { get; }

Property Value

string

TypeName

Gets the assembly-qualified name of the type that can be used to add additional design time services to a ServiceCollection. This type should implement IDesignTimeServices.

public string TypeName { get; }

Property Value

string