public T ExecuteQuery <TQuery, T>() where TQuery : SqlQuery <T>, new() { var query = new TQuery(); query.SetUnitOfWork(); return(query.Find()); }