共用方式為


ConventionSetBuilder.Add(Func<IServiceProvider,IConvention>) 方法

定義

將慣例新增至集合。

public virtual void Add (Func<IServiceProvider,Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention> conventionFactory);
abstract member Add : Func<IServiceProvider, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention> -> unit
override this.Add : Func<IServiceProvider, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention> -> unit
Public Overridable Sub Add (conventionFactory As Func(Of IServiceProvider, IConvention))

參數

conventionFactory
Func<IServiceProvider,IConvention>

建立慣例的處理站。

適用於