Sprache

IConstructorBindingFactory.TryBindConstructor Methode

Definition

Überlädt

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

Quelle:
IConstructorBindingFactory.cs
Quelle:
IConstructorBindingFactory.cs
Quelle:
IConstructorBindingFactory.cs
Quelle:
IConstructorBindingFactory.cs

Achtung

Use GetBindings

Versucht, einen InstantiationBinding für den angegebenen Entitätstyp zu erstellen und 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

Parameter

entityType
IConventionEntityType

Der Objekttyp.

constructor
ConstructorInfo

Der zu verwendende Konstruktor.

binding
InstantiationBinding

Die Bindung oder null , wenn null sie erstellt werden könnte.

unboundParameters
IEnumerable<ParameterInfo>

Die Parameter, die nicht gebunden werden konnten.

Gibt zurück

true wenn eine Bindung erstellt wurde; false andernfalls.

Attribute

Gilt für:

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

Quelle:
IConstructorBindingFactory.cs
Quelle:
IConstructorBindingFactory.cs
Quelle:
IConstructorBindingFactory.cs
Quelle:
IConstructorBindingFactory.cs

Achtung

Use GetBindings

Versucht, einen InstantiationBinding für den angegebenen Entitätstyp zu erstellen und 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

Parameter

entityType
IMutableEntityType

Der Objekttyp.

constructor
ConstructorInfo

Der zu verwendende Konstruktor.

binding
InstantiationBinding

Die Bindung oder null , wenn null sie erstellt werden könnte.

unboundParameters
IEnumerable<ParameterInfo>

Die Parameter, die nicht gebunden werden konnten.

Gibt zurück

true wenn eine Bindung erstellt wurde; false andernfalls.

Attribute

Gilt für: