共用方式為


ConventionSet.Add(IConvention) 方法

定義

將慣例新增至集合。

public virtual void Add (Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention convention);
abstract member Add : Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention -> unit
override this.Add : Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention -> unit
Public Overridable Sub Add (convention As IConvention)

參數

convention
IConvention

要加入的慣例。

適用於