We add additional properties to our objects on the server, which we do not track in the database. Data is returned to the client, but an object materialized by the wind does not have it as a property. How can we add properties to our objects, which we return to the wind, but do not map them to the database where we store the data?
Example: widget class Property A - mapped to the database Property B - has the [NotMapped] attribute so that it is not stored in the database. It is calculated on the fly by the server.
When we get the object on the client, we get: Widget class = {Property A: ko.observable (value for A)}
Property B is missing.
When we look at the json returned by the server, we see:
Widget class = {Property A: Value for A, Property B: Value for B}
breeze
StewartArmbrecht
source share