public EmployeesController( appContext dbContext, IMapper mapper ) { _mapper = mapper; _dbContext = dbContext; }
public RegisterModel( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ILogger <RegisterModel> logger, IEmailSender emailSender, appContext context) { _userManager = userManager; _signInManager = signInManager; _logger = logger; _emailSender = emailSender; _context = context; }
public ExternalLoginModel( SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, ILogger <ExternalLoginModel> logger, IEmailSender emailSender, appContext context ) { _signInManager = signInManager; _userManager = userManager; _logger = logger; _emailSender = emailSender; _context = context; }
public static void Initialize(appContext context) { context.Database.EnsureCreated(); if (context.Product.Any()) { return; } var ProductType = new ProductType[] { new ProductType { Name = "Papel" }, new ProductType { Name = "Metal" }, new ProductType { Name = "Borracha" }, new ProductType { Name = "Pano" }, new ProductType { Name = "Eletronico" }, new ProductType { Name = "Vidro" } }; foreach (var pType in ProductType) { context.ProductType.Add(pType); } context.SaveChanges(); var product = new Product[] { new Product { Name = "Produto Teste", Amount = 10, Value = 15, ProductType = ProductType[0] }, }; foreach (var prod in product) { context.Product.Add(prod); } context.SaveChanges(); }
public interestsController(appContext context) { _context = context; }
public MesajController(appContext context) { _context = context; }
public loginController(appContext context) { _context = context; }
public ProductRepository(appContext context) { _context = context; }
public PlayerController(appContext context) { _context = context; }
public gameController(appContext context) { _context = context; }
public ContatoController(appContext context) { _context = context; }
public VoitureRepository(appContext context) { this.context = context; }
public CarroController(appContext context) { _context = context; }
public Repository(appContext surveyContext) { _context = surveyContext; _entities = _context.Set <T>(); }
public UserController(appContext context) { _context = context; }
public TournamentController(appContext context) { _Context = context; }
public SurveyRepository(appContext appContext) : base(appContext) { }
public IngressoesController(appContext context) { _context = context; }
public WinConditionController(appContext context) { _context = context; }
public AdministradorsController(appContext context) { _context = context; }
public ClientesController(appContext context) { _context = context; }
public EventoesController(appContext context) { _context = context; }
public PersonneRepository(appContext context) { this.context = context; }
public PessoaController(appContext context) { _context = context; }
public ProdutoController(appContext context) { _context = context; }
public usersController(appContext context) { _context = context; }