I am using a WCF Data Service and a ASP.NET host, where I have a entity data model for a recipe database. The entity "Recipe" is connected to "Ingredient", which is connected to "Unit". In my client (a windows 8 RT app), I am trying to query the service to get out all ingredients to a recipe, and the unit associated with the ingredient.
private R.juliemrEntities data;
private DataServiceCollection recipes;
var query = (DataServiceQuery)data.Recipes.Expand("Ingredients");
With this query I get the recipes and their ingredients, but I can't manage to expand to the third table, or get a hold of units via ingredients.
Does anyone know how I can write a query that allows me to get a hold of both the recipes, their ingredients and the unit for each ingredient? Help would be greatly appreciated :)