开发者

RIA DomainService Query with parameters LightSwitch

开发者 https://www.devze.com 2023-04-02 21:01 出处:网络
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.

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

精彩评论

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