public ClientesServices(SqlDbContext services, IMapper mapper, ApplicationDbContex appdbContex) { _services = services; _mapper = mapper; _appdbContex = appdbContex; }
public UsuariosController(ApplicationDbContex context, UserManager <IdentityUser> userManager, RoleManager <IdentityRole> roleManager) { _context = context; _roleManager = roleManager; _userManager = userManager; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ApplicationDbContex db) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvc(); // Inicialización de Datos if (!db.Computers.Any()) { db.Computers.AddRange(new List <Computer>() { new Computer() { memory = 8, processor = 1, diskType = 1 }, new Computer() { memory = 8, processor = 2, diskType = 1 }, new Computer() { memory = 8, processor = 3, diskType = 1 }, new Computer() { memory = 8, processor = 4, diskType = 1 } }); db.SaveChanges(); } }
public SectionUsersController(ApplicationDbContex context, UserManager <ApplicationUser> userManager, IHostingEnvironment hostingEnvironment) { _context = context; _userManager = userManager; this._hostingEnvironment = hostingEnvironment; }
public PeliculasController(ApplicationDbContex context, IAlmacenadorArchivosAzStorage almacenadorArchivos, IMapper mapper, UserManager <IdentityUser> userManager) { _context = context; _almacenadorArchivos = almacenadorArchivos; _mapper = mapper; _userManager = userManager; }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, RoleManager <IdentityRole> roleManager, IConfiguration configuration, ApplicationDbContex contex) { this._userManager = userManager; this._signInManager = signInManager; this._roleManager = roleManager; this._configuration = configuration; this._context = contex; }
public static ApplicationUserManager Create(IdentityFactoryOptions <ApplicationUserManager> options, IOwinContext context) { ApplicationDbContex dbContext = context.Get <ApplicationDbContex>(); IUserStore <ApplicationUser> store = new UserStore <ApplicationUser>(dbContext); ApplicationUserManager manager = new ApplicationUserManager(store); manager.UserValidator = new UserValidator <ApplicationUser>(manager) { AllowOnlyAlphanumericUserNames = true, RequireUniqueEmail = true }; manager.PasswordValidator = new PasswordValidator() { RequiredLength = 6 }; return(manager); }
public SectionsController(ApplicationDbContex context, IHostingEnvironment hostingEnvironment) { _context = context; _hostingEnvironment = hostingEnvironment; }
public VotosController(ApplicationDbContex context, UserManager <IdentityUser> userManager) { this.context = context; this.userManager = userManager; }
//private readonly string contendor = "personas"; public PersonasController(ApplicationDbContex contex, IAlmacenadorArchivosAzStorage almacenadorArchivos, IMapper mapper) { _contex = contex; _almacenadorArchivos = almacenadorArchivos; _mapper = mapper; }
public GenericRepository(ApplicationDbContex context, IUnitOfWork unitOfWork) { this.context = context; this.unitOfWork = unitOfWork; this.dbSet = context.Set <TEntity>(); }
public FacturaServices(ApplicationDbContex services, IMapper mapper) { _services = services; _mapper = mapper; }
public void Create(User user) { ApplicationDbContex db = new ApplicationDbContex(); db.Users.Add(user); db.SaveChanges(); }
public BookController(ApplicationDbContex db) { _db = db; }
public AttendancesController() { _dbContext = new ApplicationDbContex(); }
public IndexModel(ApplicationDbContex db) { _db = db; }
public ModelRepository(ApplicationDbContex context, IUnitOfWork unitOfWork) { this.modelRepository = new GenericRepository <Model>(context, unitOfWork); }
public StudentController(ApplicationDbContex contex) { this._contex = contex; }
/// <summary> /// Inicialización de clase con la bd /// </summary> /// <param name="db"></param> public ComputerController(ApplicationDbContex db) { this.db = db; }
public GenerosController(ApplicationDbContex contex) { _contex = contex; }
public UpsertModel(ApplicationDbContex db) { _db = db; }
public CreateModel(ApplicationDbContex db) { _db = db; }
public ArticleController(ApplicationDbContex context) { _context = context; }
public CourseController() { _dbContext = new ApplicationDbContex(); }
public HomeController() { _dbContext = new ApplicationDbContex(); }
public EditModel(ApplicationDbContex db) { _db = db; }
public MakeRepository(ApplicationDbContex context, IUnitOfWork unitOfWork) { this.makeReposotory = new GenericRepository <Make>(context, unitOfWork); }