IncludeMetadataConvention クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
The IncludeMetadataConvention is no longer used. EdmMetadata is not included in the model. <see cref="EdmModelDiffer" /> is now used to detect changes in the model.
この DbModelBuilder 規則により、DbModelBuilder はモデルのビルド時にモデルに関するメタデータを含めます。 規則によってモデルを作成すると DbContext 、この規則が DbModelBuilder で使用される一覧に追加されます。 その後、DbContext を使用してデータベースを作成すると、モデル メタデータがデータベースに書き込まれます。 これは、データベースに対して最後に使用された後にモデルが変更されたかどうかを確認するためのクイック チェックとして使用できます。 この規則は、派生 DbContext クラスの OnModelCreating メソッドをオーバーライドすることで、規則から DbModelBuilder 削除できます。
[System.Obsolete("The IncludeMetadataConvention is no longer used. EdmMetadata is not included in the model. <see cref="EdmModelDiffer" /> is now used to detect changes in the model.")]
public class IncludeMetadataConvention : System.Data.Entity.ModelConfiguration.Conventions.Convention
type IncludeMetadataConvention = class
inherit Convention
Public Class IncludeMetadataConvention
Inherits Convention
- 継承
- 継承
-
IncludeMetadataConvention
- 属性
コンストラクター
IncludeMetadataConvention() |
古い.
この DbModelBuilder 規則により、DbModelBuilder はモデルのビルド時にモデルに関するメタデータを含めます。 規則によってモデルを作成すると DbContext 、この規則が DbModelBuilder で使用される一覧に追加されます。 その後、DbContext を使用してデータベースを作成すると、モデル メタデータがデータベースに書き込まれます。 これは、データベースに対して最後に使用された後にモデルが変更されたかどうかを確認するためのクイック チェックとして使用できます。 この規則は、派生 DbContext クラスの OnModelCreating メソッドをオーバーライドすることで、規則から DbModelBuilder 削除できます。 |
メソッド
Properties() |
古い.
モデル内のすべてのプロパティに適用される軽量規則の構成を開始します。 (継承元 Convention) |
Properties<T>() |
古い.
モデル内の指定した型のすべてのプリミティブ プロパティに適用される軽量規則の構成を開始します。 (継承元 Convention) |
Types() |
古い.
モデル内のすべてのマップされた型に適用される軽量規則の構成を開始します。 (継承元 Convention) |
Types<T>() |
古い.
指定した型から派生または実装するモデル内のすべてのマップされた型に適用される軽量規則の構成を開始します。 (継承元 Convention) |
適用対象
Entity Framework