FactoryMethodBinding Class

Definition

Defines the binding of parameters to a factory method.

public class FactoryMethodBinding : Microsoft.EntityFrameworkCore.Metadata.InstantiationBinding
type FactoryMethodBinding = class
    inherit InstantiationBinding
Public Class FactoryMethodBinding
Inherits InstantiationBinding
Inheritance
FactoryMethodBinding

Remarks

See Entity types with constructors for more information and examples.

Constructors

FactoryMethodBinding(MethodInfo, IReadOnlyList<ParameterBinding>, Type)

Creates a new FactoryMethodBinding instance for a static factory method.

FactoryMethodBinding(Object, MethodInfo, IReadOnlyList<ParameterBinding>, Type)

Creates a new FactoryMethodBinding instance for a non-static factory method.

Properties

ParameterBindings

The collection of ParameterBinding instances used.

(Inherited from InstantiationBinding)
RuntimeType

The type that will be created from the expression tree created for this binding.

Methods

CreateConstructorExpression(ParameterBindingInfo)

Creates a MethodCallExpression using the given method.

With(IReadOnlyList<ParameterBinding>)

Creates a copy that contains the given parameter bindings.

With(IReadOnlyList<ParameterBinding>)

Creates a copy that contains the given parameter bindings.

(Inherited from InstantiationBinding)

Applies to