当在我的Event类的.List()方法上使用下面的过滤器时,我在Vici.CoolStorage中得到了异常'Unable to cast object of 'System.String‘to type 'QueryExpression’:
Event.List("has(Resource where has(Teams where TeamID = @TeamID))",
"@TeamID", teamID);->事件-资源= ManyToOne关系(资源属性)
->资源-团队= ManyToMany关系,plural=true (CSList团队属性)
我要检索具有属于指定团队(teamID)的资源的所有事件。在Vici.CoolStorage筛选器语法中这是可能的吗?
ps。teamID =指南
发布于 2009-09-15 13:58:27
has()函数只能与*ToMany关系一起使用。我想你的意思是:
我想您想要选择所有具有与特定团队相关的资源的记录?
这可能就是你要找的:
Event.List("has(Resource.Teams where TeamID = @TeamID))",
"@TeamID", teamID);https://stackoverflow.com/questions/1427281
复制相似问题