public static void SeedHostDb(SolutionDbContext context) { context.SuppressAutoSetTenantId = true; // Host seed new InitialHostDbBuilder(context).Create(); // Default tenant seed (in host database). new DefaultTenantBuilder(context).Create(); new TenantRoleAndUserBuilder(context, 1).Create(); }
public void SaveData(string symbol, double amount) { try { using (SolutionDbContext db = new SolutionDbContext()) { cheapest_currency model = new cheapest_currency(); model.symbol = symbol; model.amount = amount; db.cheapest_currency.Add(model); db.SaveChanges(); } } catch (Exception ex) { } }
public PropuestaController(SolutionDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public GastosFijos(SolutionDbContext solutionDbContext) { _repo = new Repository <data.GastosFijos>(solutionDbContext); }
public Categoria(SolutionDbContext solutionDbContext) { _repo = new Repository <data.Categorias>(solutionDbContext); }
public UnitOfWork(SolutionDbContext dbContext) { _dbContext = dbContext; }
public TelefonoTienda(SolutionDbContext solutionDbContext) { _repo = new RepositoryTelefonoTienda(solutionDbContext); }
public Empresa(SolutionDbContext solutionDbContext) { _repo = new Repository <data.Empresa>(solutionDbContext); }
public PublicidadController(SolutionDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public UsuarioDepartamento(SolutionDbContext solutionDbContext) { _repo = solutionDbContext; }
public DefaultTenantBuilder(SolutionDbContext context) { _context = context; }
public NoticiaController(SolutionDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public RepositoryUsuarioDepartamento(SolutionDbContext context) : base(context) { }
public AspNetUserRoles(SolutionDbContext solutionDbContext) { _repo = new RepositoryAspNetUserRoles(solutionDbContext); }
public AspNetRoleClaims(SolutionDbContext solutionDbContext) { _repo = solutionDbContext; }
public CategoriaProductos(SolutionDbContext _context) { context = _context; }
public HostRoleAndUserCreator(SolutionDbContext context) { _context = context; }
public CategoriesController(SolutionDbContext context, IMapper mapper) { _context = context; }
public CustomersController(SolutionDbContext context, IMapper mapper) { _context = context; this._mapper = mapper; }
public Noticia(SolutionDbContext solutionDbContext) { _repo = solutionDbContext; }
public ControlAforoController(SolutionDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public RepositoryAspNetUserClaims(SolutionDbContext context) : base(context) { }
public PropuestaDepartamento(SolutionDbContext solutionDbContext) { _repo = new RepositoryPropuestaDepartamento(solutionDbContext); }
public AspNetUsersController(SolutionDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public AspNetUsers(SolutionDbContext solutionDbContext) { _repository = new RepositoryAspNetUsersRoles <data.AspNetUsers>(solutionDbContext); }
public AspNetRoles(SolutionDbContext _context) { context = _context; }
public Staffs(SolutionDbContext solutionDbContext) { _repo = solutionDbContext; }
public RepositoryPublicidad(SolutionDbContext context) : base(context) { }
public TiendasController(SolutionDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public EmpresaController(SolutionDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }