ModelCustomizer.FindSets(ModelBuilder, DbContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework