Ejemplo n.º 1
0
 public void persistTransactionsCollection(LinkedList <Transaction> transactions)
 {
     using (TransactionsDBEntities1 entities = new TransactionsDBEntities1())
     {
         entities.Transactions.AddRange(transactions);
         entities.SaveChanges();
     }
 }
Ejemplo n.º 2
0
 public void persistTransaction(Transaction transaction)
 {
     using (TransactionsDBEntities1 entities = new TransactionsDBEntities1())
     {
         entities.Transactions.Add(transaction);
         entities.SaveChanges();
     }
 }