语言

ModelConfigurationBuilder 构造函数

定义

重载

名称 说明
ModelConfigurationBuilder(ConventionSet)

初始化 的新 ModelConfigurationBuilder实例。

ModelConfigurationBuilder(ConventionSet, IServiceProvider)

这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

ModelConfigurationBuilder(ConventionSet)

Source:
ModelConfigurationBuilder.cs

初始化 的新 ModelConfigurationBuilder实例。

public ModelConfigurationBuilder(Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions);
new Microsoft.EntityFrameworkCore.ModelConfigurationBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Sub New (conventions As ConventionSet)

参数

conventions
ConventionSet

在模型生成过程中要应用的约定。

注解

有关详细信息 ,请参阅 EF Core 中的预约定模型生成 。

适用于

ModelConfigurationBuilder(ConventionSet, IServiceProvider)

Source:
ModelConfigurationBuilder.cs
Source:
ModelConfigurationBuilder.cs
Source:
ModelConfigurationBuilder.cs
Source:
ModelConfigurationBuilder.cs
Source:
ModelConfigurationBuilder.cs

这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public ModelConfigurationBuilder(Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions, IServiceProvider serviceProvider);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.ModelConfigurationBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet * IServiceProvider -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Sub New (conventions As ConventionSet, serviceProvider As IServiceProvider)

参数

conventions
ConventionSet
serviceProvider
IServiceProvider
特性

适用于