共用方式為


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

啟用 的 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[])

停用 的 DbModelBuilder 一或多個慣例。

Remove<TConvention>()

停用 的 DbModelBuilder 慣例。 您可以在 System.Data.Entity.ModelConfiguration.Conventions 命名空間中找到可供移除的預設慣例。

ToString()

允許自訂實例所使用的 DbModelBuilder 慣例。 您可以在 System.Data.Entity.ModelConfiguration.Conventions 命名空間中找到預設慣例。

適用於