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); }
public UnityOfWorkDapper(IDbConnectionContext context) { _context = (DbContextDapper)context; }
public RepositorySupplyDapper(IDbConnectionContext context) : base(context) { _context = (DbContextDapper)context; }
public RepositoryAddressDapper(IDbConnectionContext context) : base(context) { _context = (DbContextDapper)context; }
public RepositoryCustomerDapper(IDbConnectionContext context) : base(context) { _context = (DbContextDapper)context; }
public RepositoryCustomerEF(IDbConnectionContext context) : base(context) { _context = (DbContextEF)context; }
public RepositorySupplyEF(IDbConnectionContext context) : base(context) { _context = (DbContextEF)context; }
public UnityOfWorkEF(IDbConnectionContext context) { _context = context as DbContextEF; }
public RepositoryAddressEF(IDbConnectionContext context) : base(context) { _context = (DbContextEF)context; }
public CRUDEF(IDbConnectionContext context) { _context = (DbContextEF)context; }
public CRUDDapper(IDbConnectionContext context) { _context = (DbContextDapper)context; }