Table of Contents

Interface IParameterBindingFactories

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.dll

Allows a IParameterBindingFactory to be found from those registered in the internal service provider.

public interface IParameterBindingFactories

Remarks

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

See Entity types with constructors for more information and examples.

Methods

FindFactory(Type, string)

Attempts to find a IParameterBindingFactory that can bind to a parameter with the given type and name.

IParameterBindingFactory? FindFactory(Type parameterType, string parameterName)

Parameters

parameterType Type

The parameter type.

parameterName string

The parameter name.

Returns

IParameterBindingFactory

The found factory, or null if none could be found.