IConstructorBindingFactory.TryBindConstructor Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
| Имя. | Описание |
|---|---|
| TryBindConstructor(IConventionEntityType, ConstructorInfo, InstantiationBinding, IEnumerable<ParameterInfo>) |
Устаревшие.
Пытается создать InstantiationBinding объект для заданного типа сущности и ConstructorInfo |
| TryBindConstructor(IMutableEntityType, ConstructorInfo, InstantiationBinding, IEnumerable<ParameterInfo>) |
Устаревшие.
Пытается создать InstantiationBinding объект для заданного типа сущности и ConstructorInfo |
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
Привязка или nullnull может быть создана.
- 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
Привязка или nullnull может быть создана.
- unboundParameters
- IEnumerable<ParameterInfo>
Параметры, которые не могут быть привязаны.
Возвращаемое значение
true Значение , если была создана привязка; false в противном случае.
- Атрибуты