Jul 17, 2013, 7:48 PM
[CLOSED] DirectMethod deserializing readonly property
I have a grid that binds to a collection of Person object. Person has a readonly PersonId that I use to uniquely identify a person. In a directmethod, I pass back the grid's store's records. The directmethod has an argument of type List<Person>. Since PersonId is readonly, it is not being set when deserializing from client JSON data. Therefore, I lost ability to know which person each record is. Is there a workaround? I can not modify the Person object. The property is readonly because it comes from the database as an identity column.
Last edited by Baidaly; Jul 17, 2013 at 11:50 PM. Reason: [CLOSED]