Dil

ValueGeneratorSelector.TryCreate(IProperty, ITypeBase, ValueGenerator) Yöntem

Tanım

Verilen özellik için yeni bir değer oluşturucu oluşturur.

public virtual bool TryCreate(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase, out Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator? valueGenerator);
abstract member TryCreate : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * ValueGenerator -> bool
override this.TryCreate : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * ValueGenerator -> bool
Public Overridable Function TryCreate (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

Yeni oluşturulan değer oluşturucu veya null kullanılabilir değer oluşturucu yok.

Döndürülenler

true bir oluşturucu oluşturulduysa.

Şunlara uygulanır