/// <summary> /// Adds the entity types found in <see cref="DbSet{TEntity}" /> properties on the context to the model. /// </summary> /// <param name="modelBuilder"></param> /// <param name="context"></param> protected virtual void FindSets([NotNull] ModelBuilder modelBuilder, [NotNull] DbContext context) { foreach (var setInfo in SetFinder.FindSets(context)) { modelBuilder.Entity(setInfo.EntityType); } }