Himai Minh wrote:Hi, Jack,
Save is fine because the id can be auto generated. But update is not fine. That gives you a clue that the id is not found.
Do you provide the right id to look up in the DB first?
Hi Himai,
Thanks for your response. So I am only doing an insert so could you tel me why update is coming into picture here? Also, what id it is looking to find - I am not understanding this part. Since I'm just inserting the records, I am not providing any id since it's autogenerated in my SQL server table as I've set it as an Identity.
Pease let me know if I can answer any questions.