Thanks a lot Sander,

my json is...
"*Products_Categories*": [
         {
            "$id": "2",
            "$type": "MvcApplication12.Areas.Admin.Models.Product_Category, 
Blitz",
            "ID": 176,
            "ProductID": 49,
            *"CategoryID": 167,*
            "RowVersion": 0,
            "Categories": null,
            "Products": {
               "$ref": "1"
            }
         },
         {
            "$id": "3",
            "$type": "MvcApplication12.Areas.Admin.Models.Product_Category, 
Blitz",
            "ID": 177,
            "ProductID": 49,
           * "CategoryID": 163,*
            "RowVersion": 0,
            "Categories": null,
            "Products": {
               "$ref": "1"
            }
         },
         {
            "$id": "4",
            "$type": "MvcApplication12.Areas.Admin.Models.Product_Category, 
Blitz",
            "ID": 178,
            "ProductID": 49,
          *  "CategoryID": 153,*
            "RowVersion": 0,
            "Categories": null,
            "Products": {
               "$ref": "1"
            }
         }
      ]

you can see 'CategoryID' its also picked up by Angular in the HTML:-

  <div ng-repeat="catID in product.Products_Categories">

<div>

Cat ID: {{catID.CategoryID}}

</div>

</div>


I'm fairly sure the DB design is OK. Perhaps its the way Breeze generates 
the json file.

Anyway Thanks a lot 
I really appreciate your help. How much would you charge to fix it?


On Monday, 3 February 2014 14:16:25 UTC, Sander Elias wrote:
>
> Hi Tim.
>
> The problem is in the lay-out of your data. This is from your data.
>
>       "Products_Categories": [
>          {
>             "$id": "2",
>             ...
>             }
>          },
>          {
>             "$id": "3",
>             ...
>          },
>          {
>             "$id": "4",
>             ...
>              }
>          }
>       ]
>    },
>
> Do you don’t have 
>
> Products_Categories.CategoryID 
>
> but 
>
> Products_Categories.[{CategoryID1...},{CategoryID2..}...]
>
> That is more complex as the filter currently allows. Also, this is way 
> more complex then a data structure should be. If you want I can make it to 
> work, but this is not something I will do in my spare time!
> Do you have somebody in your surroundings with knowledge on database 
> design? If so, let him fix your database before going further with this.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to