Пример #1
0
        public List<TransactionTypesModel> FetchAll()
        {
            
            List<CloneableDictionary<string, string>> table = db.SelectMultiple("select * from transaction_type");
            foreach (CloneableDictionary<string, string> row in table)
            {
                var temp = new TransactionTypesModel();
                var clone = row.Clone();
                temp.Id = Int32.Parse(clone["id"]);
                temp.Code = clone["transaction_code"];
                temp.Description = clone["transaction_type"];

                _transactionTypes.Add(temp);
            }
            return _transactionTypes;
        }
Пример #2
0
        public List <TransactionTypesModel> FetchAll()
        {
            List <CloneableDictionary <string, string> > table = db.SelectMultiple("select * from transaction_type");

            foreach (CloneableDictionary <string, string> row in table)
            {
                var temp  = new TransactionTypesModel();
                var clone = row.Clone();
                temp.Id          = Int32.Parse(clone["id"]);
                temp.Code        = clone["transaction_code"];
                temp.Description = clone["transaction_type"];

                _transactionTypes.Add(temp);
            }
            return(_transactionTypes);
        }
Пример #3
0
 public TransactionTypesModel(TransactionTypesModel source)
 {
     Id = source.Id;
     Code = source.Code;
     Description = source.Description;
 }
Пример #4
0
 public TransactionTypesModel(TransactionTypesModel source)
 {
     Id          = source.Id;
     Code        = source.Code;
     Description = source.Description;
 }