public IEnumerable <T> Run(IDatabaseSession dbSession) { var parameters = this.GetParameters(); return(dbSession.Query <T>(this.BuildSql(), parameters)); }
/// <summary> /// Actual executable method of database query which returns data from database. /// </summary> /// <param name="session">The database connection session.</param> public virtual IEnumerable <T> Execute(IDatabaseSession session) => session.Query <T>(this.SqlStatement, this.Parameters);