using breeze entity framework code first return data calls web service.
i have data model that's several levels deep. in instance i'm returning "schedule" object, has number of child "defaultitems", each 1 of has cost , single "type" child own properties.
if call web service 1 of these directly, this, expected:
{ $id:"1", $type:"schedule_06b188ac55b213fe4b13ea5b77d9c039007e80e9db6f6841c055777a028c5f95, entityframeworkdynamicproxies-core", defaultitems:[ { $id:"2", $type:"defaultitem, core", rowid:"d422af5d-d6ca-46a3-a142-1feb93348e1d", cost:1, type:{ $id:"3", $type:"type, core", rowid:"38ed6d1b-d0b7-43cb-b958-2b2424b97759", type:"type1" }, schedule:{ $ref:"1" } }, //more defaultitem objects {}, {} ], rowid:"627eb2f2-ec74-4646-b3d1-d6423f84a2cd", start:"2010-01-18t00:00:00.000", end:"2019-01-18t00:00:00.000" } this comes down browser, knockout used bind data objects. trouble @ point, data seems 1 level deep.
so can @ schedule.start , schedule.end without issue. can iterate through defaultitem objects inside schedule , costs out. type objects inside defaultitem aren't there.
it's not using incorrect name bind them: if pause in browser debugger , drill down json browser has, there's no type objects @ all, not empty objects should be.
how come come out of web service, don't seem in data breeze passes browser?
apparently in breeze, relationships have defined both ways in order propagate. had ensure primary key in type class marked foreign key defaultitem class.
i believe registered bug. it's bit annoying.
Comments
Post a Comment