Dil

SqlServerStoreGenerationConvention Sınıf

Tanım

Özelliklerin hesaplanmış sütun olarak veya aynı anda bir kullanarak varsayılan değere sahip olacak şekilde yapılandırılmamasını sağlayan bir SqlServerValueGenerationStrategy kural.

[System.Runtime.CompilerServices.Nullable(0)]
public class SqlServerStoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.StoreGenerationConvention
public class SqlServerStoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.StoreGenerationConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerStoreGenerationConvention = class
    inherit StoreGenerationConvention
type SqlServerStoreGenerationConvention = class
    inherit StoreGenerationConvention
Public Class SqlServerStoreGenerationConvention
Inherits StoreGenerationConvention
Devralma
SqlServerStoreGenerationConvention
Özellikler

Açıklamalar

Daha fazla bilgi ve örnek için bkz. Model oluşturma kuralları ve EF Core ile SQL Server ve Azure SQL veritabanlarına erişme.

Oluşturucular

Veri Akışı Adı Description
SqlServerStoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

öğesinin yeni bir örneğini SqlServerStoreGenerationConventionoluşturur.

Özellikler

Veri Akışı Adı Description
Dependencies

Bu hizmet için bağımlılıklar.

(Devralındığı yer: StoreGenerationConvention)
RelationalDependencies

Bu hizmet için ilişkisel sağlayıcıya özgü bağımlılıklar.

(Devralındığı yer: StoreGenerationConvention)

Yöntemler

Veri Akışı Adı Description
ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Bir model sonlandırıldıktan sonra çağrılır.

(Devralındığı yer: StoreGenerationConvention)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Bir model sonlandırılırken çağrılır.

(Devralındığı yer: StoreGenerationConvention)
ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Bir özellikte ek açıklama değiştirildikten sonra çağrılır.

Validate(IConventionProperty, StoreObjectIdentifier)

Bu özellik için çakışan depo oluşturma yapılandırması varsa oluşturur.

Validate(IConventionProperty)

Özelliklerin hesaplanmış sütun olarak veya aynı anda bir kullanarak varsayılan değere sahip olacak şekilde yapılandırılmamasını sağlayan bir SqlServerValueGenerationStrategy kural.

Şunlara uygulanır