public AccountController( UserManager <ApplicationUsers> userManager, SignInManager <ApplicationUsers> signInManager, IEmailSender emailSender, ILogger <AccountController> logger, bd_lesContext context) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _context = context; }
public static async Task Initialize(IServiceProvider serviceProvider, string testUserPw) { using (var context = new bd_lesContext( serviceProvider.GetRequiredService <DbContextOptions <bd_lesContext> >())) { // The password is set with the following command: // dotnet user-secrets set SeedUserPW <pw> // The admin user can do anything var profileID = await EnsureProfile("admin", 0, context); await EnsureProfile("default", 1, context); var adminID = await EnsureUser(serviceProvider, testUserPw, "admin", profileID, context); await EnsureRole(serviceProvider, adminID, Constants.AdministratorsRole, profileID, context); //var uid = await EnsureUser(serviceProvider, testUserPw, "manager", context); //await EnsureRole(serviceProvider, uid, Constants.ManagersRole); await SeedDBAsync(serviceProvider, context, adminID); } }
public FuncionariosController(bd_lesContext context) { _context = context; }
public RegManutencaosController(bd_lesContext context) { _context = context; }
public ConfigurationsViewController(bd_lesContext context) { _context = context; }
public RegRemocoesController(bd_lesContext context) { _context = context; }
public RegTratamentoesController(bd_lesContext context) { _context = context; }
public RegAlimentarsController(bd_lesContext context) { _context = context; }
public ProjetoesController(bd_lesContext context) { _context = context; }
public PlanoAlimentaresController(bd_lesContext context) { _context = context; }
public FinalidadesController(bd_lesContext context) { _context = context; }
public RegAmostragensController(bd_lesContext context) { _context = context; }
public DistritosController(bd_lesContext context) { _context = context; }
public TanquesController(bd_lesContext context) { _context = context; }
public LocalcapturasController(bd_lesContext context) { _context = context; }
public AgenteTratsController(bd_lesContext context) { _context = context; }
public ConcelhosController(bd_lesContext context) { _context = context; }
public PerfisController(bd_lesContext context, RoleManager <IdentityRole> roleManager, UserManager <ApplicationUsers> userManager) { _context = context; _userManager = userManager; _roleManager = roleManager; }
public RegCondAmbsController(bd_lesContext context) { _context = context; }
public TOrigemsController(bd_lesContext context) { _context = context; }
public RegNovosAnimaisController(bd_lesContext context) { _context = context; }
public GruposController(bd_lesContext context) { _context = context; }
public EnsaiosController(bd_lesContext context) { _context = context; }
public UniqueAttribute(string value, bd_lesContext context) : base(DefaultErrorMessage) { _context = context; }
public MotivoesController(bd_lesContext context) { _context = context; }
public TipoManuntecaosController(bd_lesContext context) { _context = context; }
public FornecedorcolectorsController(bd_lesContext context) { _context = context; }
public TipoestatutogeneticoesController(bd_lesContext context) { _context = context; }
public FamiliasController(bd_lesContext context) { _context = context; }
public ElementoequipasController(bd_lesContext context) { _context = context; }