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); } }