protected virtual List <TModel> QueryDistinct(SqlBuilder builder) => _database.QueryDistinct <TModel>(builder).ToList();
protected virtual IEnumerable <TModel> PagedQuery(SqlBuilder sql) => Query(sql);