Table of Contents

Interface IPropertyParameterBindingFactory

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

Finds a ParameterBinding specifically for some form of property (that is, some IPropertyBase) of the model.

public interface IPropertyParameterBindingFactory

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

FindParameter(IComplexType, Type, string)

Finds a ParameterBinding specifically for an IPropertyBase in the model.

ParameterBinding? FindParameter(IComplexType complexType, Type parameterType, string parameterName)

Parameters

complexType IComplexType

The complex type on which the IPropertyBase is defined.

parameterType Type

The parameter name.

parameterName string

The parameter type.

Returns

ParameterBinding

The parameter binding, or null if none was found.

FindParameter(IEntityType, Type, string)

Finds a ParameterBinding specifically for an IPropertyBase in the model.

ParameterBinding? FindParameter(IEntityType entityType, Type parameterType, string parameterName)

Parameters

entityType IEntityType

The entity type on which the IPropertyBase is defined.

parameterType Type

The parameter name.

parameterName string

The parameter type.

Returns

ParameterBinding

The parameter binding, or null if none was found.