Defined Query types to pre compile queries. (IQuery<>, static Query<>, QueryCompiler<>). Created a SessionStub to use by the pre compiler.
The precompiler should receive the IDbQueryResult interface not the ISession