Share via


DependencyInjectionParameterBinding Class

Definition

Describes the binding from 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.

[System.Runtime.CompilerServices.Nullable(0)]
public class DependencyInjectionParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding
public class DependencyInjectionParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding
[<System.Runtime.CompilerServices.Nullable(0)>]
type DependencyInjectionParameterBinding = class
    inherit ServiceParameterBinding
type DependencyInjectionParameterBinding = class
    inherit ServiceParameterBinding
Public Class DependencyInjectionParameterBinding
Inherits ServiceParameterBinding
Inheritance
DependencyInjectionParameterBinding
Derived
Attributes

Remarks

See Entity types with constructors for more information and examples.

Constructors

Name Description
DependencyInjectionParameterBinding(Type, Type, IPropertyBase)

Creates a new DependencyInjectionParameterBinding instance for the given service type.

DependencyInjectionParameterBinding(Type, Type, IPropertyBase[])

Creates a new DependencyInjectionParameterBinding instance for the given service type.

Properties

Name Description
ConsumedProperties

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

(Inherited from ParameterBinding)
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 ServiceParameterBinding)
ServiceType

The EF internal service CLR type.

(Inherited from ServiceParameterBinding)

Methods

Name Description
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(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.

Applies to