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>

创建约定的工厂。

适用于