IConventionPropertyBuilder.HasValueGenerator 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.
Aşırı Yüklemeler
| HasValueGenerator(Func<IProperty,IEntityType,ValueGenerator>, Boolean) |
ValueGeneratorBu özellik için değerler oluşturacak olan öğesini yapılandırır. |
| HasValueGenerator(Type, Boolean) |
ValueGeneratorBu özellik için değerler oluşturacak olan öğesini yapılandırır. |
HasValueGenerator(Func<IProperty,IEntityType,ValueGenerator>, Boolean)
ValueGeneratorBu özellik için değerler oluşturacak olan öğesini yapılandırır.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder HasValueGenerator (Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> factory, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasValueGenerator (Func<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>? factory, bool fromDataAnnotation = false);
abstract member HasValueGenerator : Func<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Metadata.IEntityType, Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function HasValueGenerator (factory As Func(Of IProperty, IEntityType, ValueGenerator), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder
Parametreler
- factory
- Func<IProperty,IEntityType,ValueGenerator>
Değer Oluşturucu örnekleri oluşturmak için kullanılacak bir temsilci.
- fromDataAnnotation
- Boolean
Yapılandırmanın bir veri ek açıklaması kullanılarak mı belirtilmediğini belirtir.
Döndürülenler
Yapılandırma uygulanmışsa aynı Oluşturucu örneği, null tersi durumda.
Şunlara uygulanır
HasValueGenerator(Type, Boolean)
ValueGeneratorBu özellik için değerler oluşturacak olan öğesini yapılandırır.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder HasValueGenerator (Type valueGeneratorType, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasValueGenerator (Type? valueGeneratorType, bool fromDataAnnotation = false);
abstract member HasValueGenerator : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function HasValueGenerator (valueGeneratorType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder
Parametreler
- valueGeneratorType
- Type
Öğesinden devralan bir tür ValueGenerator .
- fromDataAnnotation
- Boolean
Yapılandırmanın bir veri ek açıklaması kullanılarak mı belirtilmediğini belirtir.
Döndürülenler
Yapılandırma uygulanmışsa aynı Oluşturucu örneği, null tersi durumda.