public long LongCount(SqlBuilder query) { return(this.Connection.LongCount(CreateCommand(Extensions.CountQuery(query)), this.Log)); }
/// <summary> /// Checks if <paramref name="query"/> would return at least one row. /// </summary> /// <param name="query">The query whose existance is to be checked.</param> /// <returns>true if <paramref name="query"/> contains any rows; otherwise, false.</returns> public bool Exists(SqlBuilder query) { return(this.Connection.Exists(CreateCommand(Extensions.ExistsQuery(query)), this.Log)); }