ModelSource.FindSets(ModelBuilder, DbContext) 方法

定义

将上下文中的属性中找到 DbSet<TEntity> 的实体类型添加到模型。

protected virtual void FindSets (Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Microsoft.EntityFrameworkCore.DbContext context);
abstract member FindSets : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
override this.FindSets : Microsoft.EntityFrameworkCore.ModelBuilder * Microsoft.EntityFrameworkCore.DbContext -> unit
Protected Overridable Sub FindSets (modelBuilder As ModelBuilder, context As DbContext)

参数

modelBuilder
ModelBuilder

ModelBuilder用于生成模型的 。

context
DbContext

要查找 DbSet<TEntity> 属性的上下文。

适用于