Share via


ModelSource.FindSets(ModelBuilder, DbContext) Method

Definition

Adds the entity types found in DbSet<TEntity> properties on the context to the model.

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)

Parameters

modelBuilder
ModelBuilder

The ModelBuilder being used to build the model.

context
DbContext

The context to find DbSet<TEntity> properties on.

Applies to