summaryrefslogtreecommitdiff
path: root/product/database/transactions/DeleteFromDatabase.cs
blob: 07c2879e1f0d1fe21364c28c7c83783bf45a8d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace momoney.database.transactions
{
    public class DeleteFromDatabase<T> : DatabaseCommand
    {
        readonly T entity;

        public DeleteFromDatabase(T entity)
        {
            this.entity = entity;
        }

        public void run(DatabaseConnection connection)
        {
            connection.delete(entity);
        }
    }
}