Partilhar via


IConstructorBindingFactory.TryBindConstructor Método

Definição

Sobrecargas

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

Tenta criar um InstantiationBinding para o tipo de entidade fornecido e ConstructorInfo

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

Tenta criar um InstantiationBinding para o tipo de entidade fornecido e ConstructorInfo

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

Origem:
IConstructorBindingFactory.cs
Origem:
IConstructorBindingFactory.cs
Origem:
IConstructorBindingFactory.cs

Tenta criar um InstantiationBinding para o tipo de entidade fornecido e 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

Parâmetros

entityType
IConventionEntityType

O tipo de entidade.

constructor
ConstructorInfo

O construtor a ser usado.

binding
InstantiationBinding

A associação ou null se null puder ser criada.

unboundParameters
IEnumerable<ParameterInfo>

Os parâmetros que não puderam ser associados.

Retornos

true se uma associação foi criada; false Caso contrário.

Aplica-se a

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

Origem:
IConstructorBindingFactory.cs
Origem:
IConstructorBindingFactory.cs
Origem:
IConstructorBindingFactory.cs

Tenta criar um InstantiationBinding para o tipo de entidade fornecido e 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

Parâmetros

entityType
IMutableEntityType

O tipo de entidade.

constructor
ConstructorInfo

O construtor a ser usado.

binding
InstantiationBinding

A associação ou null se null puder ser criada.

unboundParameters
IEnumerable<ParameterInfo>

Os parâmetros que não puderam ser associados.

Retornos

true se uma associação foi criada; false Caso contrário.

Aplica-se a