次の方法で共有


RelationalValueGenerationConvention クラス

定義

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

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
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 IPropertyAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IEntityTypeAnnotationChangedConvention, IPropertyAnnotationChangedConvention
継承
RelationalValueGenerationConvention
派生
実装

注釈

詳細と例については、 モデル構築規則EF Core 値の生成 に関するページを参照してください。

コンストラクター

RelationalValueGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

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

プロパティ

Dependencies

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

(継承元 ValueGenerationConvention)
RelationalDependencies

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

メソッド

GetValueGenerated(IConventionProperty)

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

GetValueGenerated(IProperty)

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

GetValueGenerated(IProperty, StoreObjectIdentifier)

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

GetValueGenerated(IReadOnlyProperty, StoreObjectIdentifier)

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

MappingStrategyAllowsValueGeneration(IConventionProperty, String)

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

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

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

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>)

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

適用対象