main
 1namespace momoney.database.transactions
 2{
 3    public class DeleteFromDatabase<T> : DatabaseCommand
 4    {
 5        readonly T entity;
 6
 7        public DeleteFromDatabase(T entity)
 8        {
 9            this.entity = entity;
10        }
11
12        public void run(DatabaseConnection connection)
13        {
14            connection.delete(entity);
15        }
16    }
17}