共用方式為


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> 屬性的內容。

適用於