Interface IDbSetFinder
- Namespace
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly
- Microsoft.EntityFrameworkCore.dll
A service for finding DbSet<TEntity> properties on a type that inherits from DbContext.
public interface IDbSetFinder
Remarks
The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
Methods
FindSets(Type)
Finds DbSet<TEntity> properties on a type that inherits from DbContext.
IReadOnlyList<DbSetProperty> FindSets(Type contextType)
Parameters
Returns
- IReadOnlyList<DbSetProperty>
A list of the found properties.