public UnitOfWorkEnterprise(EmpresasContext context , IEnterpriseRepository enterpriseRepository , IEnterpriseTypeRepository enterpriseTypeRepository) : base(context) { Enterprises = enterpriseRepository; Types = enterpriseTypeRepository; }
public UnitOfWorkAuth(EmpresasContext context , IControlTokenRepository controlTokenRepository , IUserRepository userRepository) : base(context) { ControlToken = controlTokenRepository; Users = userRepository; }
public void GetEnterprisesTest() { using (var context = new EmpresasContext(options.UseInMemoryDatabase("GetEnterprises_all").Options)) { context.Database.EnsureCreated(); // IEnterpriseService enterpriseService = new EnterpriseService(context, mapper); } }
//constructor public TrasladoController(ITrasladoService _trasladoService, ITrasladoMap _trasladoMap, IUserService _userService, ITrasladoInventarioService _trasladoInventarioService, ITrasladoInventarioMap _trasladoInventarioMap, IKardexMap kardexMap, EmpresasContext bd) { this.trasladoService = _trasladoService; this.trasladoMap = _trasladoMap; this.userService = _userService; this.trasladoInventarioService = _trasladoInventarioService; this.trasladoInventarioMap = _trasladoInventarioMap; this.kardexMap = kardexMap; context = bd; }
public TipoClienteRepository(EmpresasContext context) : base(context) { }
public DescuentoProductoRepository(EmpresasContext context) : base(context) { }
public CajaAperturaDenominacionRepository(EmpresasContext context) : base(context) { }
public CotizacionConfigRepository(EmpresasContext context) : base(context) { }
public Repository(EmpresasContext context) { Context = context; EntitiesSet = Context.Set <T>(); }
public ContactoRelacionRepository(EmpresasContext context) : base(context) { }
public UnidadRepository(EmpresasContext context) : base(context) { }
public ConversionRepository(EmpresasContext context) : base(context) { }
public DepartamentoRepository(EmpresasContext context) : base(context) { }
public ColaAprobacionRepository(EmpresasContext context) : base(context) { }
public CamposPersonalizadosRepository(EmpresasContext context) : base(context) { }
public EstadoTareaRepository(EmpresasContext context) : base(context) { }
public FacturaRepository(EmpresasContext context) : base(context) { }
public PromocionProductoRepositoy(EmpresasContext context) : base(context) { }
public RequisicionRepository(EmpresasContext context) : base(context) { }
public DescuentoPromocionRepository(EmpresasContext context) : base(context) { }
public ContactoCamposRepository(EmpresasContext context) : base(context) { }
public BodegaRepository(EmpresasContext context) : base(context) { }
public InventarioRepository(EmpresasContext context) : base(context) { }
public PuntoVentaRepository(EmpresasContext context) : base(context) { }
public FlujoCategoriaRepository(EmpresasContext context) : base(context) { }
public KardexRepository(EmpresasContext context) : base(context) { }
public FamiliaOnlineRepository(EmpresasContext context) : base(context) { }
public DenominacionRepository(EmpresasContext context) : base(context) { }
public DescuentoUsuarioRangoRepository(EmpresasContext context) : base(context) { }
public TrasladoRepository(EmpresasContext context) : base(context) { }