summaryrefslogtreecommitdiff
path: root/product/database/transactions/IDatabaseConnection.cs
blob: 98f79f459f2cde10fb63debceadec7a1b437ec59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
using System.Collections.Generic;

namespace momoney.database.transactions
{
    public interface IDatabaseConnection : IDisposable
    {
        IEnumerable<T> query<T>();
        IEnumerable<T> query<T>(Predicate<T> predicate);
        void delete<T>(T entity);
        void commit();
        void store<T>(T entity);
    }
}