public override string ToString() { var mapper = DapperConfiguration.GetMapper <TEntity>(); var query = new QueryBuilder(mapper); return(query.Build(Expression)); }
private object ExecuteInternal(Expression expression) { var mapper = DapperConfiguration.GetMapper <TEntity>(); var queryBuilder = new QueryBuilder(mapper); var sql = queryBuilder.Build(expression); return(this.Query(sql)); }
public QueryBase(TEntity entity) { Mapper = DapperConfiguration.GetMapper <TEntity>(); Entity = entity; }