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; }
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); }
public TransactionTypesModel(TransactionTypesModel source) { Id = source.Id; Code = source.Code; Description = source.Description; }