Language

IConstructorBindingFactory.TryBindConstructor メソッド

定義

オーバーロード

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

ソース:
IConstructorBindingFactory.cs
ソース:
IConstructorBindingFactory.cs
ソース:
IConstructorBindingFactory.cs
ソース:
IConstructorBindingFactory.cs

注意事項

Use GetBindings

指定されたエンティティ型の InstantiationBinding の作成を試みます。 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

パラメーター

entityType
IConventionEntityType

エンティティ型。

constructor
ConstructorInfo

使用するコンストラクター。

binding
InstantiationBinding

バインディング。nullを作成できる場合はnull。

unboundParameters
IEnumerable<ParameterInfo>

バインドできなかったパラメーター。

戻り値

true バインディングが作成された場合。それ以外の場合 false 。

属性

適用対象

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

ソース:
IConstructorBindingFactory.cs
ソース:
IConstructorBindingFactory.cs
ソース:
IConstructorBindingFactory.cs
ソース:
IConstructorBindingFactory.cs

注意事項

Use GetBindings

指定されたエンティティ型の InstantiationBinding の作成を試みます。 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

パラメーター

entityType
IMutableEntityType

エンティティ型。

constructor
ConstructorInfo

使用するコンストラクター。

binding
InstantiationBinding

バインディング。nullを作成できる場合はnull。

unboundParameters
IEnumerable<ParameterInfo>

バインドできなかったパラメーター。

戻り値

true バインディングが作成された場合。それ以外の場合 false 。

属性

適用対象