Beispiel #1
0
        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();
        }
Beispiel #2
0
 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)
     {
     }
 }
Beispiel #3
0
 public PropuestaController(SolutionDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Beispiel #4
0
 public GastosFijos(SolutionDbContext solutionDbContext)
 {
     _repo = new Repository <data.GastosFijos>(solutionDbContext);
 }
Beispiel #5
0
 public Categoria(SolutionDbContext solutionDbContext)
 {
     _repo = new Repository <data.Categorias>(solutionDbContext);
 }
Beispiel #6
0
 public UnitOfWork(SolutionDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public TelefonoTienda(SolutionDbContext solutionDbContext)
 {
     _repo = new RepositoryTelefonoTienda(solutionDbContext);
 }
Beispiel #8
0
 public Empresa(SolutionDbContext solutionDbContext)
 {
     _repo = new Repository <data.Empresa>(solutionDbContext);
 }
Beispiel #9
0
 public PublicidadController(SolutionDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Beispiel #10
0
 public UsuarioDepartamento(SolutionDbContext solutionDbContext)
 {
     _repo = solutionDbContext;
 }
Beispiel #11
0
 public DefaultTenantBuilder(SolutionDbContext context)
 {
     _context = context;
 }
Beispiel #12
0
 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;
 }
Beispiel #19
0
 public CustomersController(SolutionDbContext context, IMapper mapper)
 {
     _context     = context;
     this._mapper = mapper;
 }
Beispiel #20
0
 public Noticia(SolutionDbContext solutionDbContext)
 {
     _repo = solutionDbContext;
 }
Beispiel #21
0
 public ControlAforoController(SolutionDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public RepositoryAspNetUserClaims(SolutionDbContext context) : base(context)
 {
 }
Beispiel #23
0
 public PropuestaDepartamento(SolutionDbContext solutionDbContext)
 {
     _repo = new RepositoryPropuestaDepartamento(solutionDbContext);
 }
Beispiel #24
0
 public AspNetUsersController(SolutionDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Beispiel #25
0
 public AspNetUsers(SolutionDbContext solutionDbContext)
 {
     _repository = new RepositoryAspNetUsersRoles <data.AspNetUsers>(solutionDbContext);
 }
Beispiel #26
0
 public AspNetRoles(SolutionDbContext _context)
 {
     context = _context;
 }
Beispiel #27
0
 public Staffs(SolutionDbContext solutionDbContext)
 {
     _repo = solutionDbContext;
 }
 public RepositoryPublicidad(SolutionDbContext context)
     : base(context)
 {
 }
Beispiel #29
0
 public TiendasController(SolutionDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public EmpresaController(SolutionDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }