views:

43

answers:

1

How should this implementation look like with fluent nhibernate 1.0 rtm

public class Repository<T> : IRepository<T> {
public IUnitOfWork UnitOfWork {
get { return ObjectFactory.GetInstance<IUnitOfWork>(); }
}
public ISession Session { get { return UnitOfWork.CurrentSession; } }
public T Get(Expression<Func<T, bool>> expression) { }
}
A: 

Upgraded to a later version of FNH which seems to have support for linq expressions

Marcus