using (ObjectContext ctx = new ObjectContext("name=kinectEntities"))
{
ctx.DefaultContainerName = "kinectEntities";
ObjectSet<produtos> query = ctx.CreateObjectSet<produtos>();
foreach (produtos r in query)
{
//percorrendo registros da base.. monta as parada aqui..
var button = new KinectTileButton { Label = (r.valor).ToString(CultureInfo.CurrentCulture) };
this.wrapPanel.Children.Add(button);
}
};
I have this code only that it returns me all products. I do not know how to use the where to filter my result by category.