Language

SqlServerValueGenerationConvention クラス

定義

外部キーの一部ではなく主キーの一部であるプロパティ、データベースの既定値を使用するように構成されたプロパティ、またはSqlServerValueGenerationStrategyを使用するように構成されたプロパティに対して、ストア値の生成をOnAddとして構成する規則。 また、プロパティが計算列として構成されている場合は、プロパティを OnAddOrUpdate として構成します。

[System.Runtime.CompilerServices.Nullable(0)]
public class SqlServerValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalValueGenerationConvention
public class SqlServerValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalValueGenerationConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerValueGenerationConvention = class
    inherit RelationalValueGenerationConvention
type SqlServerValueGenerationConvention = class
    inherit RelationalValueGenerationConvention
Public Class SqlServerValueGenerationConvention
Inherits RelationalValueGenerationConvention
継承
属性

注釈

詳細と例については、「モデル構築規則」および「EF Core を使用したSQL ServerおよびAzure SQLデータベースへのアクセス」を参照してください。

コンストラクター

Name 説明
SqlServerValueGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

SqlServerValueGenerationConventionの新しいインスタンスを作成します。

プロパティ

Name 説明
Dependencies

このサービスの依存関係。

(継承元 ValueGenerationConvention)
RelationalDependencies

このサービスのリレーショナル プロバイダー固有の依存関係。

(継承元 RelationalValueGenerationConvention)

メソッド

Name 説明
GetValueGenerated(IConventionProperty)

指定されたプロパティに対して設定するストア値生成戦略を返します。

GetValueGenerated(IProperty, StoreObjectIdentifier)

指定されたプロパティに対して設定するストア値生成戦略を返します。

GetValueGenerated(IProperty)

指定されたプロパティに対して設定するストア値生成戦略を返します。

GetValueGenerated(IReadOnlyProperty, StoreObjectIdentifier)

指定されたプロパティに対して設定するストア値生成戦略を返します。

MappingStrategyAllowsValueGeneration(IConventionProperty, String)

マッピング戦略とプロパティが規則による値の生成を許可するかどうかを確認します。

MappingStrategyAllowsValueGeneration(IConventionProperty, String)

マッピング戦略とプロパティが規則による値の生成を許可するかどうかを確認します。

(継承元 RelationalValueGenerationConvention)
ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

エンティティで注釈が変更された後に呼び出されます。

ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

エンティティ型で注釈が変更された後に呼び出されます。

(継承元 RelationalValueGenerationConvention)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

エンティティ型の基本型が変更された後に呼び出されます。

(継承元 ValueGenerationConvention)
ProcessEntityTypePrimaryKeyChanged(IConventionEntityTypeBuilder, IConventionKey, IConventionKey, IConventionContext<IConventionKey>)

エンティティ型の主キーが変更された後に呼び出されます。

(継承元 ValueGenerationConvention)
ProcessForeignKeyAdded(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

外部キーがエンティティ型に追加された後に呼び出されます。

(継承元 ValueGenerationConvention)
ProcessForeignKeyAdded(IConventionRelationshipBuilder, IConventionContext<IConventionRelationshipBuilder>)

外部キーがエンティティ型に追加された後に呼び出されます。

(継承元 ValueGenerationConvention)
ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

外部キーの所有権の値が変更された後に呼び出されます。

(継承元 ValueGenerationConvention)
ProcessForeignKeyPropertiesChanged(IConventionForeignKeyBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IReadOnlyList<IConventionProperty>>)

外部キーのプロパティまたはプリンシパル キーが変更された後に呼び出されます。

(継承元 ValueGenerationConvention)
ProcessForeignKeyPropertiesChanged(IConventionRelationshipBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IConventionRelationshipBuilder>)

外部キーのプロパティまたはプリンシパル キーが変更された後に呼び出されます。

(継承元 ValueGenerationConvention)
ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

外部キーが削除された後に呼び出されます。

(継承元 ValueGenerationConvention)
ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

プロパティで注釈が変更された後に呼び出されます。

適用対象