tag:blogger.com,1999:blog-2130776719266156611.post8542446356907816404..comments2024-03-19T20:18:28.249-07:00Comments on .Net Core | MVC | HTML Agility Pack | SQL | Technology Crowds: Exception: System Data Entity Infrastructure DbUpdateExceptionAnjan kanthttp://www.blogger.com/profile/10313754134214829886noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-2130776719266156611.post-82933903645136779152018-02-23T07:09:33.070-08:002018-02-23T07:09:33.070-08:00you need to set primary key.you need to set primary key.Anjan kanthttps://www.blogger.com/profile/10313754134214829886noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-42621516430206620432018-02-23T02:24:12.414-08:002018-02-23T02:24:12.414-08:00I give the type uniqueidentifier.So What to do?I give the type uniqueidentifier.So What to do?Anonymoushttps://www.blogger.com/profile/03514037072939242882noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-26472824541236194982017-03-09T00:41:10.364-08:002017-03-09T00:41:10.364-08:00thanks i got ......thanks i got ......Shaziahttps://www.blogger.com/profile/03482675343703695285noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-61847005488969567212016-06-06T04:10:21.414-07:002016-06-06T04:10:21.414-07:00Can you confirm me that you are not inserting dupl...Can you confirm me that you are not inserting duplicate value in primary key in your database table.Anjan kanthttps://www.blogger.com/profile/10313754134214829886noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-22656971563036954272016-05-27T09:27:48.292-07:002016-05-27T09:27:48.292-07:00I am getting the same error even though i have the...I am getting the same error even though i have the primary key with identity property set to true, what to do? i hope you can help me with this i am kind of a beginner.Shahriyar Memonhttps://www.blogger.com/profile/14128116445055217284noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-46982130011254137732016-05-24T21:36:34.492-07:002016-05-24T21:36:34.492-07:00Yes, you need to set primary key in your database ...Yes, you need to set primary key in your database table first because ORM EF can't work without relations. EF is totally helpless without relationships between tables. Anjan kanthttps://www.blogger.com/profile/10313754134214829886noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-89882703401189567992016-05-24T13:56:36.217-07:002016-05-24T13:56:36.217-07:00hello ,, i have the same error but i couldn't ...hello ,, i have the same error but i couldn't solve it with your solution because the type of my primary key is nvachar so can you help me please ????Anonymoushttps://www.blogger.com/profile/00551556875757187803noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-60463004615716669782016-03-22T05:11:47.980-07:002016-03-22T05:11:47.980-07:00Did you set identity on in your table, EF requires...Did you set identity on in your table, EF requires primary key necessary, it did not fixed this issue then after remove your old entity framework model and add entity framework again in your application.Anjan kanthttps://www.blogger.com/profile/10313754134214829886noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-90680209758509104332016-03-22T04:05:26.226-07:002016-03-22T04:05:26.226-07:00is give me the some errors message plzz help me ? ...is give me the some errors message plzz help me ? I'm beginner .<br /><br />S-Mhttps://www.blogger.com/profile/08548671557947365081noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-25234959611387871322015-12-07T01:50:17.665-08:002015-12-07T01:50:17.665-08:00Well done! keep reading more on Entity Framework.Well done! keep reading more on Entity Framework.Anjan kanthttps://www.blogger.com/profile/10313754134214829886noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-44043191686445931972015-12-05T08:43:43.862-08:002015-12-05T08:43:43.862-08:00This solved all of my problems. Thank you so much!...This solved all of my problems. Thank you so much!Anonymoushttps://www.blogger.com/profile/07209651510809148565noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-81634095154556752862015-10-28T04:09:18.473-07:002015-10-28T04:09:18.473-07:00Well Done! smartly handled the situation.Well Done! smartly handled the situation.Anjan kanthttps://www.blogger.com/profile/10313754134214829886noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-37360871881774536942015-10-28T00:28:39.577-07:002015-10-28T00:28:39.577-07:00Nice i have encountered with the same error and it...Nice i have encountered with the same error and it resolved by your solution, what i have did that i have removed field to become primary key because i was unable to on the identity.ankittechtalkshttps://www.blogger.com/profile/08575215909871493939noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-87464010135155214212015-09-03T04:27:32.283-07:002015-09-03T04:27:32.283-07:00then add entity framework model again, I think you...then add entity framework model again, I think your entity model does not refreshed yet. if you still face the same error then let me know. Anjan kanthttps://www.blogger.com/profile/10313754134214829886noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-86623368181510080552015-09-03T00:33:06.094-07:002015-09-03T00:33:06.094-07:00i set identity is yes then also it give me same er...i set identity is yes then also it give me same error msg :( Anonymoushttps://www.blogger.com/profile/14356556326127053696noreply@blogger.comtag:blogger.com,1999:blog-2130776719266156611.post-87794748195258119912015-09-03T00:29:15.290-07:002015-09-03T00:29:15.290-07:00i still get this error. !!!i still get this error. !!!Anonymoushttps://www.blogger.com/profile/14356556326127053696noreply@blogger.com