public List <Wallet> GetAllWallet() { try { if (_connectionDb.State != ConnectionState.Open) { _connectionDb.Open(); } using (var walletRepository = _vakapayRepositoryFactory.GetWalletRepository(_connectionDb)) { var result = walletRepository.FindBySql($"SELECT * FROM {SimpleCRUD.GetTableName(typeof(Wallet))}"); return(result); } } catch (Exception e) { Console.WriteLine(e); throw e; } }
public MySqlBaseRepository(IDbConnection dbConnection) : base(dbConnection, SimpleCRUD.GetTableName(typeof(TModel))) { }
public MySqlBaseRepository(string connectionString) : base(connectionString, SimpleCRUD.GetTableName(typeof(TModel))) { }
public UserRepository(IDbConnection dbConnection) : base(dbConnection) { WalletTableName = SimpleCRUD.GetTableName(typeof(Wallet)); TableNameBitcoinAddress = SimpleCRUD.GetTableName(typeof(BitcoinAddress)); }
public UserRepository(string connectionString) : base(connectionString) { WalletTableName = SimpleCRUD.GetTableName(typeof(Wallet)); TableNameBitcoinAddress = SimpleCRUD.GetTableName(typeof(BitcoinAddress)); }