Exemplo n.º 1
0
 public EmployeesController(
     appContext dbContext,
     IMapper mapper
     )
 {
     _mapper    = mapper;
     _dbContext = dbContext;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 4
0
        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;
 }
Exemplo n.º 7
0
 public loginController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public ProductRepository(appContext context)
 {
     _context = context;
 }
Exemplo n.º 9
0
 public PlayerController(appContext context)
 {
     _context = context;
 }
 public gameController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 11
0
 public ContatoController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 12
0
 public VoitureRepository(appContext context)
 {
     this.context = context;
 }
Exemplo n.º 13
0
 public CarroController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 14
0
 public Repository(appContext surveyContext)
 {
     _context  = surveyContext;
     _entities = _context.Set <T>();
 }
 public UserController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 16
0
 public TournamentController(appContext context)
 {
     _Context = context;
 }
Exemplo n.º 17
0
 public SurveyRepository(appContext appContext)
     : base(appContext)
 {
 }
Exemplo n.º 18
0
 public IngressoesController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 19
0
 public WinConditionController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 20
0
 public AdministradorsController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 21
0
 public ClientesController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 22
0
 public EventoesController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 23
0
 public PersonneRepository(appContext context)
 {
     this.context = context;
 }
Exemplo n.º 24
0
 public PessoaController(appContext context)
 {
     _context = context;
 }
 public ProdutoController(appContext context)
 {
     _context = context;
 }
Exemplo n.º 26
0
 public usersController(appContext context)
 {
     _context = context;
 }