Dil

ValueGeneratorSelector.Create Yöntem

Tanım

Aşırı Yüklemeler

Veri Akışı Adı Description
Create(IProperty, IEntityType)

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

Create(IProperty, ITypeBase)
Geçersiz.

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

Create(IProperty, IEntityType)

Kaynak:
ValueGeneratorSelector.cs
Kaynak:
ValueGeneratorSelector.cs
Kaynak:
ValueGeneratorSelector.cs
Kaynak:
ValueGeneratorSelector.cs
Kaynak:
ValueGeneratorSelector.cs
Kaynak:
ValueGeneratorSelector.cs
Kaynak:
ValueGeneratorSelector.cs

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şturucunun alınacak özelliği.

entityType
IEntityType

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

Döndürülenler

Yeni oluşturulan değer oluşturucu.

Şunlara uygulanır

Create(IProperty, ITypeBase)

Kaynak:
ValueGeneratorSelector.cs
Kaynak:
ValueGeneratorSelector.cs
Kaynak:
ValueGeneratorSelector.cs

Dikkat

Use TryCreate and throw if needed when the generator is not found.

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

[System.Obsolete("Use TryCreate and throw if needed when the generator is not found.")]
public virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
public virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
[<System.Obsolete("Use TryCreate and throw if needed when the generator is not found.")>]
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Overridable Function Create (property As IProperty, typeBase As ITypeBase) As ValueGenerator

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

Döndürülenler

Yeni oluşturulan değer oluşturucu.

Özellikler

Şunlara uygulanır