Sdílet prostřednictvím


DependencyInjectionMethodParameterBinding Class

Definition

Describes the binding from a method on an EF internal dependency injection service, which may or may not also have and associated IServiceProperty, to a parameter in a constructor, factory method, or similar.

public class DependencyInjectionMethodParameterBinding : Microsoft.EntityFrameworkCore.Metadata.DependencyInjectionParameterBinding
type DependencyInjectionMethodParameterBinding = class
    inherit DependencyInjectionParameterBinding
Public Class DependencyInjectionMethodParameterBinding
Inherits DependencyInjectionParameterBinding
Inheritance

Remarks

See Entity types with constructors for more information and examples.

Constructors

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase)

Creates a new DependencyInjectionParameterBinding instance for the given method of the given service type.

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase[])

Creates a new DependencyInjectionParameterBinding instance for the given method of the given service type.

Properties

ConsumedProperties

The properties that are handled by this binding and so do not need to be set in some other way.

(Inherited from ParameterBinding)
Method

The method being bound to, as defined on the dependency injection service interface.

ParameterType

The parameter CLR type.

(Inherited from ParameterBinding)
ServiceDelegate

A delegate to set a CLR service property on an entity instance.

ServiceDelegate

A delegate to set a CLR service property on an entity instance.

(Inherited from DependencyInjectionParameterBinding)
ServiceType

The EF internal service CLR type.

(Inherited from ServiceParameterBinding)

Methods

BindToParameter(Expression, Expression)

Creates an expression tree representing the binding of the value of a property from a materialization expression to a parameter of the constructor, factory method, etc.

BindToParameter(Expression, Expression)

Creates an expression tree representing the binding of the value of a property from a materialization expression to a parameter of the constructor, factory method, etc.

(Inherited from DependencyInjectionParameterBinding)
BindToParameter(ParameterBindingInfo)

Creates an expression tree representing the binding of the value of a property from a materialization expression to a parameter of the constructor, factory method, etc.

BindToParameter(ParameterBindingInfo)

Creates an expression tree representing the binding of the value of a property from a materialization expression to a parameter of the constructor, factory method, etc.

(Inherited from ServiceParameterBinding)
With(IPropertyBase[])

Creates a copy that contains the given consumed properties.

With(IPropertyBase[])

Creates a copy that contains the given consumed properties.

(Inherited from DependencyInjectionParameterBinding)

Applies to