次の方法で共有


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
属性

メソッド

Add(IConvention[])

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

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

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

Remove<TConvention>()

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

ToString()

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

適用対象