Delen via


ServiceParameterBinding Class

Definition

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

public abstract class ServiceParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ParameterBinding
type ServiceParameterBinding = class
    inherit ParameterBinding
Public MustInherit Class ServiceParameterBinding
Inherits ParameterBinding
Inheritance
ServiceParameterBinding
Derived

Remarks

See Entity types with constructors for more information and examples.

Constructors

ServiceParameterBinding(Type, Type, IPropertyBase)

Creates a new ServiceParameterBinding instance for the given service type or metadata type.

ServiceParameterBinding(Type, Type, IPropertyBase[])

Creates a new ServiceParameterBinding instance for the given service type or metadata 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)
ParameterType

The parameter CLR type.

(Inherited from ParameterBinding)
ServiceDelegate

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

ServiceType

The EF internal service CLR type.

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

With(IPropertyBase[])

Creates a copy that contains the given consumed properties.

(Inherited from ParameterBinding)

Applies to