語言

ModelSource.CreateConventionSet(IConventionSetBuilder) 方法

定義

建立用於模型的慣例集。 只使用如果conventionSetBuilder為空。Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.CoreConventionSetBuilder

protected virtual Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet CreateConventionSet(Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder);
abstract member CreateConventionSet : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet
override this.CreateConventionSet : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet
Protected Overridable Function CreateConventionSet (conventionSetBuilder As IConventionSetBuilder) As ConventionSet

參數

conventionSetBuilder
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder

提供者慣例集合建構器被使用。

傳回

約定會被啟動。

適用於