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

要启用的约定。

属性

适用于