SqlServerStoreGenerationConvention クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
計算列として、または SqlServerValueGenerationStrategy を同時に使用して、既定値を持つプロパティが構成されていないことを保証する規則。
[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
- 継承
- 属性
注釈
詳細と例については、「モデル構築規則」および「EF Core を使用したSQL ServerおよびAzure SQLデータベースへのアクセス」を参照してください。
コンストラクター
| Name | 説明 |
|---|---|
| SqlServerStoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
SqlServerStoreGenerationConventionの新しいインスタンスを作成します。 |
プロパティ
| Name | 説明 |
|---|---|
| Dependencies |
このサービスの依存関係。 (継承元 StoreGenerationConvention) |
| RelationalDependencies |
このサービスのリレーショナル プロバイダー固有の依存関係。 (継承元 StoreGenerationConvention) |
メソッド
| Name | 説明 |
|---|---|
| ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
モデルが完成した後に呼び出されます。 (継承元 StoreGenerationConvention) |
| ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
モデルの最終処理時に呼び出されます。 (継承元 StoreGenerationConvention) |
| ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>) |
プロパティで注釈が変更された後に呼び出されます。 |
| Validate(IConventionProperty, StoreObjectIdentifier) |
このプロパティのストア生成構成が競合している場合にスローします。 |
| Validate(IConventionProperty) |
計算列として、または SqlServerValueGenerationStrategy を同時に使用して、既定値を持つプロパティが構成されていないことを保証する規則。 |