Nice. What else can be injected? I didn't find anything about that in the docs.
However, in reality, I needed that in an Entity controller trigger (OnMyEntityCreated), but when I create another constructor in the MyEntityController.Custom.cs partial class and run the app, it throws an exception: Multiple constructors accepting all given argument types have been found in type 'MyApp.Controllers.MySql.MyEntityController'. There should only be one applicable constructor.
public partial class OrcamentosController
private readonly UserManager<ApplicationUser> userManager;
private readonly RoleManager<IdentityRole> roleManager;
public MyEntityController(MySqlContext context, UserManager<ApplicationUser> userManager, RoleManager<IdentityRole> roleManager) : this(context)
this.userManager = userManager;
this.roleManager = roleManager;