Lingua

IConstructorBindingFactory.TryBindConstructor Metodo

Definizione

Overload

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

Origine:
IConstructorBindingFactory.cs
Origine:
IConstructorBindingFactory.cs
Origine:
IConstructorBindingFactory.cs
Origine:
IConstructorBindingFactory.cs

Attenzione

Use GetBindings

Tenta di creare un InstantiationBinding oggetto per il tipo di entità specificato e ConstructorInfo

[System.Obsolete("Use GetBindings")]
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);
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);
[<System.Obsolete("Use GetBindings")>]
abstract member TryBindConstructor : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Reflection.ConstructorInfo * InstantiationBinding * seq -> bool
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

Parametri

entityType
IConventionEntityType

Il tipo di entità.

constructor
ConstructorInfo

Costruttore da utilizzare.

binding
InstantiationBinding

Associazione o null se null può essere creata.

unboundParameters
IEnumerable<ParameterInfo>

Parametri che non possono essere associati.

Valori restituiti

true se è stata creata un'associazione; false in caso contrario.

Attributi

Si applica a

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

Origine:
IConstructorBindingFactory.cs
Origine:
IConstructorBindingFactory.cs
Origine:
IConstructorBindingFactory.cs
Origine:
IConstructorBindingFactory.cs

Attenzione

Use GetBindings

Tenta di creare un InstantiationBinding oggetto per il tipo di entità specificato e ConstructorInfo

[System.Obsolete("Use GetBindings")]
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);
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);
[<System.Obsolete("Use GetBindings")>]
abstract member TryBindConstructor : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.ConstructorInfo * InstantiationBinding * seq -> bool
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

Parametri

entityType
IMutableEntityType

Il tipo di entità.

constructor
ConstructorInfo

Costruttore da utilizzare.

binding
InstantiationBinding

Associazione o null se null può essere creata.

unboundParameters
IEnumerable<ParameterInfo>

Parametri che non possono essere associati.

Valori restituiti

true se è stata creata un'associazione; false in caso contrario.

Attributi

Si applica a