Let's say i have following tables in database:
I want to get a list of all the children with a specific dadId and also i want to re-use this method for other criterias.
Is it something like this that i would use ?
public IList<T> FindBy(Expression<Func<T, bool>> expression)
{
return Session.CreateCriteria<T>()
//add restriction
.List<T>();
}