コード例 #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;
 }