public F ExecuteScalar <T, F>(DbQuery <T> query) where T : DbObject, new() { string sql = query.ToSql(this.ExpressionConverter, new object[0]); return(this.ExecuteScalar <F>(sql)); }
public DbQuery(DbQuery <T> query) : this(query.Condition) { }