This means you are trying to update a primary key field on the object. Are you sure that PatientID is NOT your key because if you try and update your PK you get this sort of error.
Hope thsi helps.
If this fixed your issue then please 'Mark as Answer'
ammd
Participant
1349 Points
257 Posts
Re: Security Concern when Editing an object using asp.net MVC model binder
Apr 30, 2012 04:05 AM|LINK
This means you are trying to update a primary key field on the object. Are you sure that PatientID is NOT your key because if you try and update your PK you get this sort of error.
Hope thsi helps.