Language

ConventionsConfiguration クラス

定義

DbModelBuilder インスタンスで使用される規則をカスタマイズできるようにします。 既定の規則は、System.Data.Entity.ModelConfiguration.Conventions 名前空間にあります。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public class ConventionsConfiguration
public class ConventionsConfiguration
type ConventionsConfiguration = class
Public Class ConventionsConfiguration
継承
ConventionsConfiguration
属性

メソッド

Name 説明
Add(IConvention[])

DbModelBuilderに対して 1 つ以上の規則を有効にします。

Add<TConvention>()

DbModelBuilderの規則を有効にします。

AddAfter<TExistingConvention>(IConvention)

DbModelBuilderの規則を有効にします。 この規則は、指定された規則の後に実行されます。

AddBefore<TExistingConvention>(IConvention)

DbModelBuilderの構成規則を有効にします。 この規則は、指定された規則の前に実行されます。

AddFromAssembly(Assembly)

指定したアセンブリ内のすべての規則を検出し、 DbModelBuilderに追加します。

Equals(Object)

DbModelBuilder インスタンスで使用される規則をカスタマイズできるようにします。 既定の規則は、System.Data.Entity.ModelConfiguration.Conventions 名前空間にあります。

GetHashCode()

DbModelBuilder インスタンスで使用される規則をカスタマイズできるようにします。 既定の規則は、System.Data.Entity.ModelConfiguration.Conventions 名前空間にあります。

GetType()

現在のインスタンスの Type を取得します。

Remove(IConvention[])

DbModelBuilderの 1 つ以上の規則を無効にします。

Remove<TConvention>()

DbModelBuilderの規則を無効にします。 削除に使用できる既定の規則は、System.Data.Entity.ModelConfiguration.Conventions 名前空間にあります。

ToString()

DbModelBuilder インスタンスで使用される規則をカスタマイズできるようにします。 既定の規則は、System.Data.Entity.ModelConfiguration.Conventions 名前空間にあります。

適用対象