I’m using WCF Data services with Entity Framework 4.1
I have 2 tables with many to many relationship.
I’m trying to get an entity based on a child value.
Table 1 (Suppliers) -> ID (PrimaryKey) ,Name ,isEnabled ,Timestamp
Table 2 (Categories) -> RGID (PrimaryKey) , Name, etc....
I’ve tried to to write the URI like this.
My goal is to retrieve all Suppliers that has a Category with RGID = 3.
http://localhost/WCFS/WCFService.svc/Suppliers?$expand=Categories&$filter=RGID eq 3
and like this
http://localhost/WCFS/WCFService.svc/Suppliers?$expand=Categories&$filter=Categories/RGID eq 3
no luck.
for the second attampt I get
The 'RGID ' is not allowed at position 11. Member access or specifying a type identifier on a resource set reference is not allowed.
So how to do it???
thanks
Use navigation: