开发者

RIA DomainService Query with parameters LightSwitch

I am trying to use RIA services in LightSwitch but I get an error when the query in the DomainService has a parameter because the query is not imported into LightSwitch.

All the other queries are fine.

The error I get when attac开发者_开发技巧hing the data source in the Wizard window is

The parameter 'ID' in query 'AllRecordsbyId' is not a nullable type. This query will not be imported.


make the parameter nullable:

public IQueryable<CategoryTree> GetAllCategoryTree(int? AllRecordsbyId)
{
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜