Share via


IConstructorBindingFactory.TryBindConstructor Method

Definition

Overloads

TryBindConstructor(IConventionEntityType, ConstructorInfo, InstantiationBinding, IEnumerable<ParameterInfo>)

Attempts to create a InstantiationBinding for the given entity type and ConstructorInfo

TryBindConstructor(IMutableEntityType, ConstructorInfo, InstantiationBinding, IEnumerable<ParameterInfo>)

Attempts to create a InstantiationBinding for the given entity type and ConstructorInfo

TryBindConstructor(IConventionEntityType, ConstructorInfo, InstantiationBinding, IEnumerable<ParameterInfo>)

Source:
IConstructorBindingFactory.cs
Source:
IConstructorBindingFactory.cs
Source:
IConstructorBindingFactory.cs

Attempts to create a InstantiationBinding for the given entity type and ConstructorInfo

public bool TryBindConstructor (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Reflection.ConstructorInfo constructor, out Microsoft.EntityFrameworkCore.Metadata.InstantiationBinding binding, out System.Collections.Generic.IEnumerable<System.Reflection.ParameterInfo> unboundParameters);
public bool TryBindConstructor (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Reflection.ConstructorInfo constructor, out Microsoft.EntityFrameworkCore.Metadata.InstantiationBinding? binding, out System.Collections.Generic.IEnumerable<System.Reflection.ParameterInfo>? unboundParameters);
abstract member TryBindConstructor : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Reflection.ConstructorInfo * InstantiationBinding * seq -> bool
Public Function TryBindConstructor (entityType As IConventionEntityType, constructor As ConstructorInfo, ByRef binding As InstantiationBinding, ByRef unboundParameters As IEnumerable(Of ParameterInfo)) As Boolean

Parameters

entityType
IConventionEntityType

The entity type.

constructor
ConstructorInfo

The constructor to use.

binding
InstantiationBinding

The binding, or null if null could be created.

unboundParameters
IEnumerable<ParameterInfo>

The parameters that could not be bound.

Returns

true if a binding was created; false otherwise.

Applies to

TryBindConstructor(IMutableEntityType, ConstructorInfo, InstantiationBinding, IEnumerable<ParameterInfo>)

Source:
IConstructorBindingFactory.cs
Source:
IConstructorBindingFactory.cs
Source:
IConstructorBindingFactory.cs

Attempts to create a InstantiationBinding for the given entity type and ConstructorInfo

public bool TryBindConstructor (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.ConstructorInfo constructor, out Microsoft.EntityFrameworkCore.Metadata.InstantiationBinding binding, out System.Collections.Generic.IEnumerable<System.Reflection.ParameterInfo> unboundParameters);
public bool TryBindConstructor (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.ConstructorInfo constructor, out Microsoft.EntityFrameworkCore.Metadata.InstantiationBinding? binding, out System.Collections.Generic.IEnumerable<System.Reflection.ParameterInfo>? unboundParameters);
abstract member TryBindConstructor : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.ConstructorInfo * InstantiationBinding * seq -> bool
Public Function TryBindConstructor (entityType As IMutableEntityType, constructor As ConstructorInfo, ByRef binding As InstantiationBinding, ByRef unboundParameters As IEnumerable(Of ParameterInfo)) As Boolean

Parameters

entityType
IMutableEntityType

The entity type.

constructor
ConstructorInfo

The constructor to use.

binding
InstantiationBinding

The binding, or null if null could be created.

unboundParameters
IEnumerable<ParameterInfo>

The parameters that could not be bound.

Returns

true if a binding was created; false otherwise.

Applies to