RelationalValueGenerationConvention Sınıf
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.
Depolama değeri oluşturmayı, herhangi bir yabancı anahtarın parçası değil birincil anahtarın parçası olan veya veritabanı varsayılan değerine sahip olacak şekilde yapılandırılmış özelliklerde olarak OnAdd yapılandıran bir kural. Ayrıca, özellikleri hesaplanan sütunlar olarak yapılandırılmış gibi OnAddOrUpdate yapılandırılır.
[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalValueGenerationConvention = class
inherit ValueGenerationConvention
interface IPropertyAnnotationChangedConvention
interface IConvention
interface IEntityTypeAnnotationChangedConvention
type RelationalValueGenerationConvention = class
inherit ValueGenerationConvention
interface IPropertyAnnotationChangedConvention
interface IConvention
type RelationalValueGenerationConvention = class
inherit ValueGenerationConvention
interface IPropertyAnnotationChangedConvention
interface IConvention
interface IEntityTypeAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IEntityTypeAnnotationChangedConvention, IPropertyAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IPropertyAnnotationChangedConvention
- Devralma
- Türetilmiş
- Özellikler
- Uygulamalar
Açıklamalar
Daha fazla bilgi ve örnek için bkz. Model oluşturma kuralları ve EF Core değer oluşturma .
Oluşturucular
| Veri Akışı Adı | Description |
|---|---|
| RelationalValueGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
öğesinin yeni bir örneğini RelationalValueGenerationConventionoluşturur. |
Özellikler
| Veri Akışı Adı | Description |
|---|---|
| Dependencies |
Bu hizmet için bağımlılıklar. (Devralındığı yer: ValueGenerationConvention) |
| RelationalDependencies |
Bu hizmet için ilişkisel sağlayıcıya özgü bağımlılıklar. |