EntitySpaces / entityspaces.js

A JavaScript Data Access Framework that uses Knockout
www.entityspaces.net
36 stars 11 forks source link

Smarter EsEntity.populateEntity #6

Open EntitySpaces opened 12 years ago

EntitySpaces commented 12 years ago

I have changed EsEntity.populateEntity() so that if there is no esTypeDef entry for the property in question it just simply copies it.

For instance, if I bring down this object graph

Employees Orders OrderDetails

And we only include the Employees.js file it now copies the Orders and OrderDetails as just straight json/javascript objects (not our entities). However, what if I included Employees.js and OrderDetails.js I would want those to be real objects. It's not hard to do this I just want to have a design session on this. I started the changes but back them out.