Ejemplo n.º 1
0
        public void Initialize()
        {
            _context            = new DbContextDapper();
            _repositoryCustomer = new RepositoryCustomerDapper(_context);
            _repositoryUsers    = new CRUDDapper <Users>(_context);
            _repositorySupply   = new RepositorySupplyDapper(_context);
            _repositoryAddress  = new CRUDDapper <Address>(_context);

            //_context = new DbContextEF();
            //_repositoryCustomer = new RepositoryCustomerEF(_context);
            //_repositoryUsers = new CRUDEF<Users,UserQuery>(_context);
            //_repositorySupply = new RepositorySupplyEF(_context);
            //_repositoryAddress = new CRUDEF<Address, AddressQuery>(_context);
        }
Ejemplo n.º 2
0
 public UnityOfWorkDapper(IDbConnectionContext context)
 {
     _context = (DbContextDapper)context;
 }
Ejemplo n.º 3
0
 public RepositorySupplyDapper(IDbConnectionContext context) : base(context)
 {
     _context = (DbContextDapper)context;
 }
Ejemplo n.º 4
0
 public RepositoryAddressDapper(IDbConnectionContext context) : base(context)
 {
     _context = (DbContextDapper)context;
 }
Ejemplo n.º 5
0
 public RepositoryCustomerDapper(IDbConnectionContext context) : base(context)
 {
     _context = (DbContextDapper)context;
 }
Ejemplo n.º 6
0
 public RepositoryCustomerEF(IDbConnectionContext context) : base(context)
 {
     _context = (DbContextEF)context;
 }
Ejemplo n.º 7
0
 public RepositorySupplyEF(IDbConnectionContext context) : base(context)
 {
     _context = (DbContextEF)context;
 }
Ejemplo n.º 8
0
 public UnityOfWorkEF(IDbConnectionContext context)
 {
     _context = context as DbContextEF;
 }
Ejemplo n.º 9
0
 public RepositoryAddressEF(IDbConnectionContext context) : base(context)
 {
     _context = (DbContextEF)context;
 }
Ejemplo n.º 10
0
 public CRUDEF(IDbConnectionContext context)
 {
     _context = (DbContextEF)context;
 }
Ejemplo n.º 11
0
 public CRUDDapper(IDbConnectionContext context)
 {
     _context = (DbContextDapper)context;
 }