语言

ConventionsConfiguration.AddAfter<TExistingConvention> 方法

定义

为 . DbModelBuilder启用约定。 此约定将在指定的约定之后运行。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public void AddAfter<TExistingConvention>(System.Data.Entity.ModelConfiguration.Conventions.IConvention newConvention) where TExistingConvention : System.Data.Entity.ModelConfiguration.Conventions.IConvention;
member this.AddAfter : System.Data.Entity.ModelConfiguration.Conventions.IConvention -> unit (requires 'ExistingConvention :> System.Data.Entity.ModelConfiguration.Conventions.IConvention)
Public Sub AddAfter(Of TExistingConvention As IConvention) (newConvention As IConvention)

类型参数

TExistingConvention

将在该约定之后运行启用的约定的类型。

参数

newConvention
IConvention

要启用的约定。

特性

适用于