ValueGeneratorSelector.TryCreate(IProperty, ITypeBase, ValueGenerator) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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.