IConstructorBindingFactory Interface

Definition

A factory for finding and creating InstantiationBinding instances for a given CLR constructor.

public interface IConstructorBindingFactory
type IConstructorBindingFactory = interface
Public Interface IConstructorBindingFactory

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

GetBindings(IConventionEntityType, InstantiationBinding, InstantiationBinding)

Create a InstantiationBinding for the constructor with most parameters and the constructor with only service property parameters.

GetBindings(IMutableEntityType, InstantiationBinding, InstantiationBinding)

Create a InstantiationBinding for the constructor with most parameters and the constructor with only service property parameters.

GetBindings(IReadOnlyComplexType, InstantiationBinding, InstantiationBinding)

Create a InstantiationBinding for the constructor with most parameters and the constructor with only service property parameters.

GetBindings(IReadOnlyEntityType, InstantiationBinding, InstantiationBinding)

Create a InstantiationBinding for the constructor with most parameters and the constructor with only service property parameters.

TryBindConstructor(IConventionEntityType, ConstructorInfo, InstantiationBinding, IEnumerable<ParameterInfo>)

Attempts to create a InstantiationBinding for the given entity type and ConstructorInfo

TryBindConstructor(IMutableEntityType, ConstructorInfo, InstantiationBinding, IEnumerable<ParameterInfo>)

Attempts to create a InstantiationBinding for the given entity type and ConstructorInfo

Applies to