IValueGeneratorSelector.TrySelect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects the appropriate value generator for a given property, if available.
public bool TrySelect (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase, out Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator? valueGenerator);
abstract member TrySelect : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * ValueGenerator -> bool
Public Function TrySelect (property As IProperty, typeBase As ITypeBase, ByRef valueGenerator As ValueGenerator) As Boolean
Parameters
- property
- IProperty
The property to get the value generator for.
- typeBase
- ITypeBase
The entity type that the value generator will be used for. When called on inherited properties on derived entity types,
this entity type may be different from the declared entity type on property
- valueGenerator
- ValueGenerator
The value generator, or null
if none is available.
Returns
true
if a value generator was selected; false
if none was available.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Entity Framework