summaryrefslogtreecommitdiff
path: root/product/DataAccess/Transactions/IChangeTracker.cs
blob: adb632a0344a09a3e0daedf73b5468052b3228d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using Gorilla.Commons.Utility.Core;

namespace MoMoney.DataAccess.Transactions
{
    public interface IChangeTracker : IDisposable
    {
        bool is_dirty();
        void commit_to(IDatabase database);
    }

    public interface IChangeTracker<T> : IChangeTracker where T : IIdentifiable<Guid>
    {
        void register(T value);
        void delete(T entity);
    }
}