0

根据文档,我使用此代码构建查询:

var query = new Query()
.Repository("some_repo", "MuziburRahman")
.Select(r => new
{
    r.Name,
    r.Description,
    Issues = r.Issues(100, null, null, null, null, null, null).Select(i => i.Nodes).Select(i => new
    {
        i.Title,
        i.Body,
    }).ToList(),
});

但它显示错误:表达式树可能不包含使用可选参数的调用或调用

在此处输入图像描述

这里有什么问题?

4

1 回答 1

0

好像他们添加了另一个参数,所以你必须添加另一个null.

r.Issues(100, null, null, null, null, null, null, null)
于 2020-11-25T04:43:44.663 回答