ValueGeneratorSelector.Create(IProperty, IEntityType) Yöntem

Tanım

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

public virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Overridable Function Create (property As IProperty, entityType As IEntityType) As ValueGenerator

Parametreler

property
IProperty

için değer oluşturucusünü almak için özelliği.

entityType
IEntityType

Değer oluşturucu tarafından kullanılacak varlık türü. Türetilmiş varlık türlerinde devralınmış özelliklerde çağrıldıklarından, bu varlık türü, üzerinde bildirilen varlık türünden farklı olabilir property

Döndürülenler

ValueGenerator

Yeni oluşturulan değer oluşturucu.

Şunlara uygulanır