EntityFramework4.1でWCFデータサービスを使用しています
多対多の関係を持つ2つのテーブルがあります。子の値に基づいてエンティティを取得しようとしています。
Table 1 (Suppliers) -> ID (PrimaryKey) ,Name ,isEnabled ,Timestamp
Table 2 (Categories) -> RGID (PrimaryKey) , Name, etc....
私はこのようなURIを書こうとしました。私の目標は、RGID=3のカテゴリを持つすべてのサプライヤを取得することです。
http://localhost/WCFS/WCFService.svc/Suppliers?$expand=Categories&$filter=RGID eq 3
そしてこのように
http://localhost/WCFS/WCFService.svc/Suppliers?$expand=Categories&$filter=Categories/RGID eq 3
運がない。私が得る2番目のattamptのために
The 'RGID ' is not allowed at position 11. Member access or specifying a type identifier on a resource set reference is not allowed.
だからそれを行う方法???
ありがとう