According to the documentation, I used this code to build a query:
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(),
});
But it shows error: An expression tree may not contain a call or invocation that uses optional arguments .
What is wrong here?
Seems like they added another parameter, so you have to add another null
.
r.Issues(100, null, null, null, null, null, null, null)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.