コード例 #1
0
 public EmployeesController(
     appContext dbContext,
     IMapper mapper
     )
 {
     _mapper    = mapper;
     _dbContext = dbContext;
 }
コード例 #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;
 }
コード例 #3
0
 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;
 }
コード例 #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();
        }
コード例 #5
0
 public interestsController(appContext context)
 {
     _context = context;
 }
コード例 #6
0
 public MesajController(appContext context)
 {
     _context = context;
 }
コード例 #7
0
 public loginController(appContext context)
 {
     _context = context;
 }
コード例 #8
0
 public ProductRepository(appContext context)
 {
     _context = context;
 }
コード例 #9
0
 public PlayerController(appContext context)
 {
     _context = context;
 }
コード例 #10
0
 public gameController(appContext context)
 {
     _context = context;
 }
コード例 #11
0
 public ContatoController(appContext context)
 {
     _context = context;
 }
コード例 #12
0
 public VoitureRepository(appContext context)
 {
     this.context = context;
 }
コード例 #13
0
 public CarroController(appContext context)
 {
     _context = context;
 }
コード例 #14
0
ファイル: Repository.cs プロジェクト: LittleURF/SurveyIt
 public Repository(appContext surveyContext)
 {
     _context  = surveyContext;
     _entities = _context.Set <T>();
 }
コード例 #15
0
 public UserController(appContext context)
 {
     _context = context;
 }
コード例 #16
0
 public TournamentController(appContext context)
 {
     _Context = context;
 }
コード例 #17
0
 public SurveyRepository(appContext appContext)
     : base(appContext)
 {
 }
コード例 #18
0
 public IngressoesController(appContext context)
 {
     _context = context;
 }
コード例 #19
0
 public WinConditionController(appContext context)
 {
     _context = context;
 }
コード例 #20
0
 public AdministradorsController(appContext context)
 {
     _context = context;
 }
コード例 #21
0
 public ClientesController(appContext context)
 {
     _context = context;
 }
コード例 #22
0
 public EventoesController(appContext context)
 {
     _context = context;
 }
コード例 #23
0
 public PersonneRepository(appContext context)
 {
     this.context = context;
 }
コード例 #24
0
 public PessoaController(appContext context)
 {
     _context = context;
 }
コード例 #25
0
 public ProdutoController(appContext context)
 {
     _context = context;
 }
コード例 #26
0
 public usersController(appContext context)
 {
     _context = context;
 }