Dil

IValueGeneratorSelector.TrySelect Yöntem

Tanım

Varsa, belirli bir özellik için uygun değer oluşturucuyu seçer.

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

Parametreler

property
IProperty

Için değer oluşturucunun alınacak özelliği.

typeBase
ITypeBase

Değer oluşturucunun kullanılacağı varlık türü. Türetilmiş varlık türlerinde devralınan özelliklerde çağrıldığında, bu varlık türü üzerindeki bildirilen varlık türünden farklı olabilir property

valueGenerator
ValueGenerator

Değer oluşturucu veya null kullanılabilir değilse.

Döndürülenler

true bir değer oluşturucu seçildiyse; false varsa.

Şunlara uygulanır