Share via


ConventionSetBuilder.Add(Func<IServiceProvider,IConvention>) Method

Definition

Adds a convention to the set.

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))

Parameters

conventionFactory
Func<IServiceProvider,IConvention>

The factory that creates the convention.

Applies to