breeze - Adding a record into an association table using Breezejs -


background info

so using breezejs , knockout ef5 , breeze mvc api controller on backend. 1 of tables in data base association table, 3 columns - id , 2 foreign keys(we'll call them fkey1 , fkey2 table1 , table2). in application, need add record association table. breeze knows relationships table has.

situation

breeze js makes new record me, find out records need associate it. need add in id of table1 entity fkey1 observable , table2 entity id fkey2 observable , add whole entities respective relationship properties , add push new entity object table1 , table2 entities association property? or adding id's new object automatically add objects relationship properties (maybe objects subscribed fkey1 , fkey2 properties? - i'm guessing happens in background of breeze, shot in dark though have no idea).

creating new entities breeze super easy , love it, i'm little confused when comes creating new entities have lot of relationships.

let me if need better description of situation, it's kind of tough thing explain. thanks!

providing set "foreign key" properties appropriately when creating , attaching entities, breeze automatically update of associated relationships, i.e. navigation properties on , related entities. should never need manually perform fixup.

similarly, if reverse , assign entity scalar navigation property breeze automatically update foreign key(s). collection navigation property, if push value collection breeze automatically update foreign key of entity being pushed.

hope helps, maybe i'm missing question...


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -