Created
January 9, 2011 21:41
-
-
Save Itslet/772052 to your computer and use it in GitHub Desktop.
Unit of Work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace Web.Infrastructure | |
{ | |
public interface ISession:IDisposable { | |
void CommitChanges(); | |
Db4objects.Db4o.IObjectContainer Container { get; } | |
void Delete<T>(System.Linq.Expressions.Expression<Func<T, bool>> expression); | |
void Delete<T>(T item); | |
void DeleteAll<T>(); | |
void Dispose(); | |
T Single<T>(System.Linq.Expressions.Expression<Func<T, bool>> expression); | |
System.Linq.IQueryable<T> All<T>(); | |
void Save<T>(T item); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment