Пример #1
0
 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;
     }
 }
Пример #2
0
 public MySqlBaseRepository(IDbConnection dbConnection) : base(dbConnection,
                                                               SimpleCRUD.GetTableName(typeof(TModel)))
 {
 }
Пример #3
0
 public MySqlBaseRepository(string connectionString) : base(connectionString,
                                                            SimpleCRUD.GetTableName(typeof(TModel)))
 {
 }
Пример #4
0
 public UserRepository(IDbConnection dbConnection) : base(dbConnection)
 {
     WalletTableName         = SimpleCRUD.GetTableName(typeof(Wallet));
     TableNameBitcoinAddress = SimpleCRUD.GetTableName(typeof(BitcoinAddress));
 }
Пример #5
0
 public UserRepository(string connectionString) : base(connectionString)
 {
     WalletTableName         = SimpleCRUD.GetTableName(typeof(Wallet));
     TableNameBitcoinAddress = SimpleCRUD.GetTableName(typeof(BitcoinAddress));
 }