Share via


FactoryMethodBinding Constructors

Definition

Overloads

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.

FactoryMethodBinding(MethodInfo, IReadOnlyList<ParameterBinding>, Type)

Creates a new FactoryMethodBinding instance for a static factory method.

public FactoryMethodBinding (System.Reflection.MethodInfo factoryMethod, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.ParameterBinding> parameterBindings, Type runtimeType);
new Microsoft.EntityFrameworkCore.Metadata.FactoryMethodBinding : System.Reflection.MethodInfo * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.ParameterBinding> * Type -> Microsoft.EntityFrameworkCore.Metadata.FactoryMethodBinding
Public Sub New (factoryMethod As MethodInfo, parameterBindings As IReadOnlyList(Of ParameterBinding), runtimeType As Type)

Parameters

factoryMethod
MethodInfo

The factory method to bind to.

parameterBindings
IReadOnlyList<ParameterBinding>

The parameters to use.

runtimeType
Type

The CLR type of the instance created by the factory method.

Applies to

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

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

public FactoryMethodBinding (object factoryInstance, System.Reflection.MethodInfo factoryMethod, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.ParameterBinding> parameterBindings, Type runtimeType);
new Microsoft.EntityFrameworkCore.Metadata.FactoryMethodBinding : obj * System.Reflection.MethodInfo * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.ParameterBinding> * Type -> Microsoft.EntityFrameworkCore.Metadata.FactoryMethodBinding
Public Sub New (factoryInstance As Object, factoryMethod As MethodInfo, parameterBindings As IReadOnlyList(Of ParameterBinding), runtimeType As Type)

Parameters

factoryInstance
Object

The object on which the factory method should be called.

factoryMethod
MethodInfo

The factory method to bind to.

parameterBindings
IReadOnlyList<ParameterBinding>

The parameters to use.

runtimeType
Type

The CLR type of the instance created by the factory method.

Applies to