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